Files
linux/drivers/atm
Julia Lawall 6cf5767c71 drivers/atm: Correct redundant test
str has already been tested.  It seems that this test should be on the
recently returned value snr.

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:38:52 -07:00
..
2008-09-22 19:22:58 -07:00
2009-02-18 19:35:17 -08:00
2005-04-16 15:20:36 -07:00
2008-06-17 16:21:44 -07:00
2005-04-16 15:20:36 -07:00
2009-03-21 19:06:51 -07:00
2008-05-14 23:28:47 -07:00
2008-12-26 01:26:11 -08:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2008-09-22 19:22:58 -07:00
2005-04-16 15:20:36 -07:00