linux/drivers/atm
Julia Lawall f716168b8a drivers/atm/iphase.c: fix error return code
Convert a 0 error return code to a negative one, as returned elsewhere in the
function.

A simplified version of the semantic match that finds this problem is as
follows: (http://coccinelle.lip6.fr/)

// <smpl>
@@
identifier ret;
expression e,e1,e2,e3,e4,x;
@@

(
if (\(ret != 0\|ret < 0\) || ...) { ... return ...; }
|
ret = 0
)
... when != ret = e1
*x = \(kmalloc\|kzalloc\|kcalloc\|devm_kzalloc\|ioremap\|ioremap_nocache\|devm_ioremap\|devm_ioremap_nocache\)(...);
... when != x = e2
    when != ret = e3
*if (x == NULL || ...)
{
  ... when != ret = e4
*  return ret;
}
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: David S. Miller <davem@davemloft.net>
2012-08-06 13:29:57 -07:00
..
.gitignore
adummy.c
ambassador.c skb: Add inline helper for getting the skb end offset from head 2012-05-06 13:13:19 -04:00
ambassador.h ATM: Delete no use FILL_RX_POOLS_IN_BH marco 2011-07-08 09:06:31 -07:00
atmtcp.c atomic: use <linux/atomic.h> 2011-07-26 16:49:47 -07:00
eni.c Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
eni.h eni: fix driver remove function and driver probe error path. 2012-03-16 23:13:20 -07:00
firestream.c Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
firestream.h
fore200e.c atomic: use <linux/atomic.h> 2011-07-26 16:49:47 -07:00
fore200e.h Fix common misspellings 2011-03-31 11:26:23 -03:00
he.c module_param: make bool parameters really bool (drivers & misc) 2012-01-13 09:32:20 +10:30
he.h
horizon.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2012-04-10 14:30:45 -04:00
horizon.h
idt77105.c Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
idt77105.h
idt77252_tables.h
idt77252.c skb: Add inline helper for getting the skb end offset from head 2012-05-06 13:13:19 -04:00
idt77252.h Fix common misspellings 2011-03-31 11:26:23 -03:00
iphase.c drivers/atm/iphase.c: fix error return code 2012-08-06 13:29:57 -07:00
iphase.h atm/iphase : removal of PCI space dereferences. 2011-10-03 14:09:10 -04:00
Kconfig
lanai.c atm: Fix typo in lanai.c 2012-02-01 14:46:25 -05:00
Makefile
midway.h
nicstar.c atomic: use <linux/atomic.h> 2011-07-26 16:49:47 -07:00
nicstar.h
nicstarmac.c
nicstarmac.copyright
solos-attrlist.c
solos-pci.c solos-pci: Fix DMA support 2012-05-24 16:22:53 -04:00
suni.c Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
suni.h
tonga.h
uPD98401.h
uPD98402.c atomic: use <linux/atomic.h> 2011-07-26 16:49:47 -07:00
uPD98402.h
zatm.c Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
zatm.h
zeprom.h