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 /drivers/fpga/fpga-mgr.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 <srishtishar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/fpga/fpga-mgr.c')
0 files changed, 0 insertions, 0 deletions