diff options
| author | 2010-08-03 23:34:16 +0200 | |
|---|---|---|
| committer | 2010-08-05 14:23:45 -0500 | |
| commit | f70cb33b9c270f4f1a7f28327e7d35dbf1a6fc40 (patch) | |
| tree | 92de2b2813bfcc99edff8e1eea2922227b86ca0d /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/SchedGui.py | |
| parent | dlm: use genl_register_family_with_ops() (diff) | |
| download | linux-dev-f70cb33b9c270f4f1a7f28327e7d35dbf1a6fc40.tar.xz linux-dev-f70cb33b9c270f4f1a7f28327e7d35dbf1a6fc40.zip | |
fs/dlm: Drop unnecessary null test
hlist_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,E,E1,E2;
statement S,S1,S2;
@@
I(x,...) { <...
- (x != NULL) &&
E
...> }
// </smpl>
Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: David Teigland <teigland@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/SchedGui.py')
0 files changed, 0 insertions, 0 deletions
