diff options
author | 2010-08-03 21:35:36 +0000 | |
---|---|---|
committer | 2010-08-05 14:24:55 -0700 | |
commit | 2db00321815e20f4a7ff9df43f7cf2073085683d (patch) | |
tree | 533cb0e6729e0eae893111c30902c00b806df3f7 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | IB/ehca: Init irq tasklet before irq can happen (diff) | |
download | linux-dev-2db00321815e20f4a7ff9df43f7cf2073085683d.tar.xz linux-dev-2db00321815e20f4a7ff9df43f7cf2073085683d.zip |
IB/ehca: 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,S1,S2;
@@
I(x,...) { <...
- if (x == NULL && ...) S
...> }
// </smpl>
Signed-off-by: Julia Lawall <julia@diku.dk>
Acked-by: Alexander Schmidt <alexs@linux.vnet.ibm.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions