commit | e447d3588e1c5944f607083cb509663f8015d420 | [log] [tgz] |
---|---|---|
author | Julia Lawall <julia@diku.dk> | Wed Sep 29 17:31:29 2010 +0900 |
committer | Grant Likely <grant.likely@secretlab.ca> | Wed Sep 29 17:31:29 2010 +0900 |
tree | 66e90d9ec1e6579f8e014384664791dfeb2d6cca | |
parent | 079a176d87a4da4cb18864c54d3932131e11e229 [diff] |
spi/orion: 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,E; @@ I(x,...) { <... - (x != NULL) && E ...> } // </smpl> Signed-off-by: Julia Lawall <julia@diku.dk> Signed-off-by: Grant Likely <grant.likely@secretlab.ca>