alistair23-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
..
.gitignore
adummy.c removed unused #include <linux/version.h>'s 2008-08-23 12:14:12 -07:00
ambassador.c
ambassador.h
atmtcp.c
eni.c drivers/atm: Use DIV_ROUND_UP 2008-09-22 19:22:58 -07:00
eni.h
firestream.c atm: Add missing parentheses 2009-02-18 19:35:17 -08:00
firestream.h
fore200e.c fore200: fix oops on failed firmware load 2009-02-10 17:19:19 -08:00
fore200e.h fore200e: Convert over to pure OF driver. 2008-08-29 02:14:59 -07:00
he.c dma-mapping: replace all DMA_32BIT_MASK macro with DMA_BIT_MASK(32) 2009-04-07 08:31:11 -07:00
he.h
horizon.c ATM: horizon, fix hrz_probe fail path 2008-11-29 20:42:28 -08:00
horizon.h
idt77105.c
idt77105.h
idt77252.c atm: idt77252: Use generic SKB queue management instead of home-grown scheme. 2008-09-21 21:38:26 -07:00
idt77252.h atm: idt77252: Use generic SKB queue management instead of home-grown scheme. 2008-09-21 21:38:26 -07:00
idt77252_tables.h
iphase.c atm: fix non-const printk argument 2009-03-21 19:06:51 -07:00
iphase.h
Kconfig atm: Driver for Solos PCI ADSL2+ card. 2008-12-26 01:26:11 -08:00
lanai.c dma-mapping: replace all DMA_32BIT_MASK macro with DMA_BIT_MASK(32) 2009-04-07 08:31:11 -07:00
Makefile atm: Driver for Solos PCI ADSL2+ card. 2008-12-26 01:26:11 -08:00
midway.h
nicstar.c
nicstar.h
nicstarmac.c
nicstarmac.copyright
solos-attrlist.c solos: Add initial list of parameters 2009-01-27 16:52:07 +11:00
solos-pci.c drivers/atm: Correct redundant test 2009-07-27 11:38:52 -07:00
suni.c
suni.h
tonga.h
uPD98401.h
uPD98402.c
uPD98402.h
zatm.c drivers/atm: Use DIV_ROUND_UP 2008-09-22 19:22:58 -07:00
zatm.h
zeprom.h