linux-sg2042/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
..
Makefile net: change to new flag variable 2011-03-17 14:05:35 +01:00
lmc.h
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 include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
lmc_proto.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
lmc_proto.h
lmc_var.h treewide: Fix recieve/receive typos 2011-06-24 11:18:57 +02:00