fs/dlm: Drop unnecessary null test
authorJulia Lawall <julia@diku.dk>
Tue, 3 Aug 2010 21:34:16 +0000 (23:34 +0200)
committerDavid Teigland <teigland@redhat.com>
Thu, 5 Aug 2010 19:23:45 +0000 (14:23 -0500)
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>

No differences found