linux/drivers/staging/bcm
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
..
Adapter.h
Bcmchar.c drivers/staging: Remove useless return variables 2014-05-26 10:32:15 -07:00
Bcmnet.c
CmHost.c Staging: bcm: Shortened prototype for GetNextTargetBufferLocation() 2014-05-24 07:26:39 +09:00
CmHost.h
DDRInit.c
DDRInit.h
Debug.h
HandleControlPacket.c
HostMIBSInterface.h
IPv6Protocol.c
IPv6ProtocolHdr.h
InterfaceAdapter.h
InterfaceDld.c staging: bcm: use kzalloc instead of kmalloc/memset 2014-05-23 20:52:21 +09:00
InterfaceIdleMode.c drivers/staging: Remove useless return variables 2014-05-26 10:32:15 -07:00
InterfaceIdleMode.h
InterfaceInit.c
InterfaceInit.h
InterfaceIsr.c
InterfaceIsr.h
InterfaceMacros.h
InterfaceMisc.c
InterfaceMisc.h bcm: Fixing a few checkpatch issues in InterfaceMisc.h 2014-04-16 20:20:03 -07:00
InterfaceRx.c
InterfaceRx.h
InterfaceTx.c
InterfaceTx.h
Ioctl.h
Kconfig
LeakyBucket.c
Macros.h
Makefile
Misc.c
PHSDefines.h
PHSModule.c drivers/staging: Remove useless return variables 2014-05-26 10:32:15 -07:00
PHSModule.h
Protocol.h
Prototypes.h
Qos.c staging: Convert __FUNCTION__ to __func__ 2014-05-25 11:05:07 -07:00
Queue.h
TODO
Transmit.c staging: bcm: fix lines over 80 characters 2014-05-23 20:54:23 +09:00
Typedefs.h
cntrl_SignalingInterface.h
headers.h
hostmibs.c staging/bcm fix hostmibs.c checkpatch problems 2014-04-14 08:29:28 -07:00
led_control.c
led_control.h
nvm.c
nvm.h
sort.c
target_params.h
vendorspecificextn.c
vendorspecificextn.h