linux_dsm_epyc7002/drivers/net/ethernet/neterion/vxge
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
..
Makefile
vxge-config.c vxge: Remove useless return variables 2014-06-02 16:58:13 -07:00
vxge-config.h vxge/s2io: remove __dev* attributes 2012-12-03 11:16:44 -08:00
vxge-ethtool.c net: get rid of SET_ETHTOOL_OPS 2014-05-13 17:43:20 -04:00
vxge-ethtool.h
vxge-main.c vxge: Use time_before() 2014-05-21 16:42:30 -04:00
vxge-main.h vxge: make local functions static 2014-01-16 16:22:54 -08:00
vxge-reg.h
vxge-traffic.c vxge: make local functions static 2014-01-16 16:22:54 -08:00
vxge-traffic.h vxge: make local functions static 2014-01-16 16:22:54 -08:00
vxge-version.h