linux/drivers/net/ethernet/toshiba
Julia Lawall 4fc3ecde69 net: fix error return code
Set the return variable to propagate any error code as done elsewhere in
the function.

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

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

// </smpl>

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
2014-01-02 03:30:35 -05:00
..
Kconfig net: enable TC35815 for MIPS again 2012-02-07 13:40:44 -05:00
Makefile
ps3_gelic_net.c net: fix error return code 2014-01-02 03:30:35 -05:00
ps3_gelic_net.h toshiba: Remove extern from function prototypes 2013-09-24 12:54:12 -07:00
ps3_gelic_wireless.c net/ps3_gelic_wireless: remove __dev* attributes 2012-12-03 11:16:55 -08:00
ps3_gelic_wireless.h toshiba: Remove extern from function prototypes 2013-09-24 12:54:12 -07:00
spider_net_ethtool.c ethtool: fix drvinfo strings set in drivers 2013-01-06 21:06:31 -08:00
spider_net.c net: spider_net: remove unnecessary pci_set_drvdata() 2013-10-23 16:58:41 -04:00
spider_net.h toshiba: Remove extern from function prototypes 2013-09-24 12:54:12 -07:00
tc35815.c net: tc35815: use phy_init_hw for PHY reset 2013-12-09 20:38:59 -05:00