diff options
| author | Srishti Sharma <srishtishar@gmail.com> | 2017-09-30 06:26:55 +0530 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-10-03 18:22:23 +0200 |
| commit | ac5f9de6d95e36f7373dbd4db45a4508dc57571d (patch) | |
| tree | 7f5a96f78f68804cda2935af551f7fa393bcfdd5 /tools/perf/scripts/python | |
| parent | staging: rtl8188eu: Place the constant on the right side in comparisons (diff) | |
| download | linux-ac5f9de6d95e36f7373dbd4db45a4508dc57571d.tar.gz linux-ac5f9de6d95e36f7373dbd4db45a4508dc57571d.zip | |
Staging: rtl8188eu: core: Use list_entry instead of container_of
For variables that have type struct list_head* use list_entry to
access current list element instead of using container_of.
Done using the following semantic patch by coccinelle.
@r@
identifier e;
struct list_head* l;
@@
<... when != l == NULL
l;
...>
(
e=
-container_of
+list_entry
(
...)
)
Signed-off-by: Srishti Sharma <srishtishar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
