diff options
author | Julia Lawall <julia@diku.dk> | 2010-08-03 21:35:36 +0000 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2010-08-05 14:24:55 -0700 |
commit | 2db00321815e20f4a7ff9df43f7cf2073085683d (patch) | |
tree | 533cb0e6729e0eae893111c30902c00b806df3f7 /drivers/infiniband/hw/qib/qib_qp.c | |
parent | bd5d0ccbef9f2565e76dba4ff291da6a2cb8b1b4 (diff) |
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 'drivers/infiniband/hw/qib/qib_qp.c')
0 files changed, 0 insertions, 0 deletions