linux/drivers/staging/silicom
Peter Senna Tschudin 4764ca981b drivers/staging: 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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-05-26 10:32:15 -07:00
..
bypasslib Staging: Silicom: bpctl_mod.c & bypass.c: Adding blank lines 2014-05-26 10:30:23 -07:00
bits.h
bp_ioctl.h
bp_mod.h staging: silicom: Fix line over 80 characters. 2014-03-16 20:02:20 -07:00
bpctl_mod.c drivers/staging: Remove useless return variables 2014-05-26 10:32:15 -07:00
bypass.h
Kconfig net: Add missing dependencies on NETDEVICES 2013-06-19 22:22:56 -07:00
libbp_sd.h
Makefile silicom: bury bp_proc.c 2013-04-09 14:13:13 -04:00
README
TODO

Theory of Operation:

The Silicom Bypass Network Interface Cards (NICs) are network cards with paired ports (2 or 4). 
The pairs either act as a "wire" allowing the network packets to pass or insert the device in 
between the two ports.  When paired with the on-board hardware watchdog or other failsafe, 
they provide high availability for the network in the face of software outages or maintenance.

The software requirements are for a kernel level driver that interfaces with the bypass and watchdog,
as well as for control software. User control can be either the provided standalone executable 
(/bin/bpctl) or the API exposed by the Silicom library.