linux-stable/drivers/net/ethernet/neterion
Peter Senna Tschudin f6d9b514de vxge: Remove useless return variables
This patch remove variables that are initialized with a constant,
are never updated, and are only used as parameter of return.
Return the constant instead of using a variable.

Verified by compilation only.

The coccinelle script that find and fixes this issue is:
// <smpl>
@@
type T;
constant C;
identifier ret;
@@
- T ret = C;
... when != ret
    when strict
return
- ret
+ C
;
// </smpl>

Signed-off-by: Peter Senna Tschudin <peter.senna@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2014-06-02 16:58:13 -07:00
..
vxge vxge: Remove useless return variables 2014-06-02 16:58:13 -07:00
Kconfig net: Remove bogus dependencies on INET 2012-11-19 19:13:59 -05:00
Makefile
s2io-regs.h
s2io.c net: get rid of SET_ETHTOOL_OPS 2014-05-13 17:43:20 -04:00
s2io.h drivers/net: fix up function prototypes after __dev* removals 2012-12-07 14:22:22 -05:00