diff options
| author | Julia Lawall <julia@diku.dk> | 2010-08-04 01:34:36 +0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-08-31 22:13:15 +0400 |
| commit | a3d7fc5ce9f5985ce5230e336f104608835693a1 (patch) | |
| tree | 5c198395c5645e34aad7e5a7b95bcdf4a696d660 /include | |
| parent | ace9115712f64315d59a86146103f6f6fc32cde3 (diff) | |
| download | linux-a3d7fc5ce9f5985ce5230e336f104608835693a1.tar.xz | |
staging: Drop unnecessary null test
list_for_each_entry binds its first argument to a non-null value, and thus
any null test on the value of that argument is superfluous.
The semantic patch that makes this change is as follows:
(http://coccinelle.lip6.fr/)
// <smpl>
@@
iterator I;
expression x;
statement S;
@@
I(x,...) { <...
- if (x != NULL || ...)
S
...> }
// </smpl>
Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
