diff options
author | Julia Lawall | 2009-07-27 08:13:30 +0200 |
---|---|---|
committer | David S. Miller | 2009-07-27 20:35:28 +0200 |
commit | 463889e27e6f4f097374a6c9de5611f520766dad (patch) | |
tree | 80c5d38c591e85fe004b571c84414d5603726b02 /net | |
parent | Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/low... (diff) | |
download | kernel-qcow2-linux-463889e27e6f4f097374a6c9de5611f520766dad.tar.gz kernel-qcow2-linux-463889e27e6f4f097374a6c9de5611f520766dad.tar.xz kernel-qcow2-linux-463889e27e6f4f097374a6c9de5611f520766dad.zip |
drivers/net: Correct redundant test
res has already been tested. It seems that this test should be on the
recently returned value mmio.
A simplified version of the semantic match that finds this problem is as
follows: (http://www.emn.fr/x-info/coccinelle/)
// <smpl>
@r exists@
local idexpression x;
expression E;
@@
if (x == NULL || ...) { ... when forall
return ...; }
... when != \(x=E\|x--\|x++\|--x\|++x\|x-=E\|x+=E\|x|=E\|x&=E\|&x\)
(
*x == NULL
|
*x != NULL
)
// </smpl>
Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions