linux_dsm_epyc7002/drivers/net/ethernet/xilinx
Julia Lawall 0f113b8117 net: axienet: fix error return code
Return a negative error code on failure.

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\|ret != 0\))
 { ... return ret; }
|
ret = 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-12-31 19:19:00 -05:00
..
Kconfig net: emaclite: Enable emaclite for Xilinx Arm Zynq platform 2013-05-30 17:08:43 -07:00
ll_temac_main.c net: Xilinx: fix error return code 2014-12-31 19:19:00 -05:00
ll_temac_mdio.c
ll_temac.h
Makefile drivers/net/ethernet/xilinx: added Xilinx AXI Ethernet driver 2012-01-25 16:59:47 -05:00
xilinx_axienet_main.c net: axienet: fix error return code 2014-12-31 19:19:00 -05:00
xilinx_axienet_mdio.c xilinx: Fix compiler warning 2014-06-22 17:14:56 -07:00
xilinx_axienet.h net: xilinx: Remove unnecessary temac_property in the driver 2014-12-26 17:06:20 -05:00
xilinx_emaclite.c net: Xilinx: fix error return code 2014-12-31 19:19:00 -05:00