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 atm: correct sysfs 'device' link creation and parent relationships 2010-12-10 15:45:05 -08:00
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 atm: [he] rewrite buffer handling in receive path 2010-05-31 00:27:47 -07:00
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 Update broken web addresses in the kernel. 2010-10-18 11:03:14 +02:00
lanai.c atm: Fix typo in lanai.c 2012-02-01 14:46:25 -05:00
Makefile Drivers: atm: Makefile: replace the use of <module>-objs with <module>-y 2010-10-21 03:09:48 -07:00
midway.h
nicstar.c atomic: use <linux/atomic.h> 2011-07-26 16:49:47 -07:00
nicstar.h atm: [nicstar] remove virt_to_bus() and support 64-bit platforms 2010-05-31 00:27:46 -07:00
nicstarmac.c atm: [nicstar] reformatted with Lindent 2010-05-31 00:27:46 -07:00
nicstarmac.copyright
solos-attrlist.c solos: Add 'Firmware' attribute for Traverse overall firmware version 2010-11-08 12:17:04 -08:00
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 atm: [suni] add support for setting loopback and framing modes 2008-06-17 16:19:24 -07:00
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