diff options
author | Julia Lawall <julia@diku.dk> | 2010-09-29 17:31:29 +0900 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2010-09-29 17:31:29 +0900 |
commit | e447d3588e1c5944f607083cb509663f8015d420 (patch) | |
tree | 66e90d9ec1e6579f8e014384664791dfeb2d6cca /drivers/spi/amba-pl022.c | |
parent | 079a176d87a4da4cb18864c54d3932131e11e229 (diff) | |
download | op-kernel-dev-e447d3588e1c5944f607083cb509663f8015d420.zip op-kernel-dev-e447d3588e1c5944f607083cb509663f8015d420.tar.gz |
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>
Diffstat (limited to 'drivers/spi/amba-pl022.c')
0 files changed, 0 insertions, 0 deletions