linux/drivers/net/wan
Julia Lawall 623d896b36 drivers/net/wan/dscc4.c: fix error return code
Move up the initialization of rc so that failure of pci_alloc_consistent
returns -ENOMEM as well.

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

// <smpl>
@@
identifier ret;
expression e1,e2;
@@

if (ret < 0)
 { ... return ret; }
 ... when != ret = e1
     when forall
*if(...)
 {
  ... when != ret = e2
* return ret;
 }
// </smpl>

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
2012-08-20 02:33:21 -07:00
..
lmc net: Fix spelling typo in net 2012-04-14 15:29:02 -04:00
.gitignore
Kconfig NET: pc300, move to staging as it is broken 2012-04-13 10:57:04 -07:00
Makefile NET: pc300, move to staging as it is broken 2012-04-13 10:57:04 -07:00
c101.c
cosa.c
cosa.h
cycx_drv.c
cycx_main.c
cycx_x25.c
dlci.c Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
dscc4.c drivers/net/wan/dscc4.c: fix error return code 2012-08-20 02:33:21 -07:00
farsync.c drivers/net/wan/farsync.c: add missing iounmap 2012-04-17 22:31:59 -04:00
farsync.h
hd64570.c Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
hd64570.h
hd64572.c Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
hd64572.h
hdlc.c
hdlc_cisco.c
hdlc_fr.c
hdlc_ppp.c
hdlc_raw.c
hdlc_raw_eth.c
hdlc_x25.c
hostess_sv11.c
ixp4xx_hss.c
lapbether.c Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
n2.c
pc300too.c
pci200syn.c
sbni.c
sbni.h
sdla.c Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
sealevel.c
wanxl.c
wanxl.h
wanxlfw.S
wanxlfw.inc_shipped
x25_asy.c drivers: net: Remove casts to same type 2012-06-06 09:31:33 -07:00
x25_asy.h
z85230.c
z85230.h