kernel-fxtec-pro1x/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 staging: bcm: Fix line over 80 characters. 2014-03-19 09:32:11 -07:00
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
cntrl_SignalingInterface.h
DDRInit.c
DDRInit.h
Debug.h
HandleControlPacket.c
headers.h
hostmibs.c staging/bcm fix hostmibs.c checkpatch problems 2014-04-14 08:29:28 -07:00
HostMIBSInterface.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 staging: bcm: Remove unneeded boolean comparisons and reflow lines 2014-03-18 11:48:42 -07:00
InterfaceInit.h
InterfaceIsr.c staging: bcm: Cleanup unneeded boolean comparisons 2014-03-18 11:48:42 -07:00
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
IPv6Protocol.c
IPv6ProtocolHdr.h
Kconfig
LeakyBucket.c
led_control.c
led_control.h
Macros.h
Makefile
Misc.c
nvm.c Staging: bcm: Remove unnecessary parentheses 2014-03-19 13:53:56 -07:00
nvm.h
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
sort.c
target_params.h
TODO
Transmit.c staging: bcm: fix lines over 80 characters 2014-05-23 20:54:23 +09:00
Typedefs.h
vendorspecificextn.c
vendorspecificextn.h