Julia Lawall 463889e27e 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>
2009-07-27 11:35:28 -07:00
..
2009-06-23 01:54:30 -04:00
2009-06-16 19:50:13 -07:00
2009-07-03 15:45:29 +01:00
2009-06-16 19:50:13 -07:00
2009-06-17 09:35:24 -07:00
2009-07-03 15:45:29 +01:00
2009-06-16 19:50:13 -07:00
2009-07-03 15:45:29 +01:00
2009-07-03 11:54:57 +02:00
2009-06-30 18:56:00 -07:00
2009-07-27 11:35:28 -07:00
2009-06-18 13:04:04 -07:00
2009-06-15 16:47:25 +10:00
2009-07-03 15:45:29 +01:00
2009-06-30 18:56:00 -07:00
2009-06-18 13:04:04 -07:00
2009-06-18 13:04:04 -07:00