diff options
author | Srishti Sharma <[email protected]> | 2017-09-30 06:26:55 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2017-10-03 18:22:23 +0200 |
commit | ac5f9de6d95e36f7373dbd4db45a4508dc57571d (patch) | |
tree | 7f5a96f78f68804cda2935af551f7fa393bcfdd5 /drivers/iio/trigger/stm32-timer-trigger.c | |
parent | f3139e62142999e5dd98c7201cf66b804d3989ed (diff) |
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 <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/iio/trigger/stm32-timer-trigger.c')
0 files changed, 0 insertions, 0 deletions