spi/orion: Drop unnecessary null test
commite447d3588e1c5944f607083cb509663f8015d420
authorJulia Lawall <julia@diku.dk>
Wed, 29 Sep 2010 08:31:29 +0000 (29 17:31 +0900)
committerGrant Likely <grant.likely@secretlab.ca>
Wed, 29 Sep 2010 08:31:29 +0000 (29 17:31 +0900)
tree66e90d9ec1e6579f8e014384664791dfeb2d6cca
parent079a176d87a4da4cb18864c54d3932131e11e229
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>
drivers/spi/orion_spi.c