linux_dsm_epyc7002/drivers/net/wan/lmc
Julia Lawall 27d751bfa4 wan: lmc: 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>
2015-04-07 15:21:54 -04:00
..
lmc_debug.c
lmc_debug.h
lmc_ioctl.h
lmc_main.c wan: lmc: fix error return code 2015-04-07 15:21:54 -04:00
lmc_media.c
lmc_proto.c
lmc_proto.h
lmc_var.h treewide: Fix recieve/receive typos 2011-06-24 11:18:57 +02:00
lmc.h
Makefile net: change to new flag variable 2011-03-17 14:05:35 +01:00