WSL2-Linux-Kernel/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
Kconfig
Makefile
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
atmtcp.c
eni.c Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
eni.h
firestream.c Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
firestream.h
fore200e.c
fore200e.h
he.c
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.c skb: Add inline helper for getting the skb end offset from head 2012-05-06 13:13:19 -04:00
idt77252.h
idt77252_tables.h
iphase.c drivers/atm/iphase.c: fix error return code 2012-08-06 13:29:57 -07:00
iphase.h
lanai.c
midway.h
nicstar.c
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
uPD98402.h
zatm.c Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
zatm.h
zeprom.h