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 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 netdevice: add queue selection fallback handler for ndo_select_queue 2014-02-17 00:36:34 -05:00
CmHost.c Staging: bcm: Shortened prototype for GetNextTargetBufferLocation() 2014-05-24 07:26:39 +09:00
CmHost.h staging: bcm: Replace BOOLEAN with bool 2013-10-28 14:13:08 -07:00
DDRInit.c Staging: bcm: DDRInit: fix up indentation issues. 2014-02-18 11:16:55 -08:00
DDRInit.h
Debug.h
HandleControlPacket.c staging: bcm: Replace FALSE with false 2013-10-28 14:13:46 -07:00
HostMIBSInterface.h
IPv6Protocol.c staging: bcm: Remove unnecessary pointer casting 2013-10-29 17:03:40 -07:00
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 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 staging: bcm: Replace FALSE with false 2013-10-28 14:13:46 -07:00
InterfaceMisc.h bcm: Fixing a few checkpatch issues in InterfaceMisc.h 2014-04-16 20:20:03 -07:00
InterfaceRx.c beeceem: Replace C99 comments with C89 ones and remove unneeded comments in InterfaceRx.c 2014-01-08 15:59:27 -08:00
InterfaceRx.h staging: bcm: Replace BOOLEAN with bool 2013-10-28 14:13:08 -07:00
InterfaceTx.c beeceem: Replace C99-style comments with C89 pendants in InterfaceTx.c 2014-01-08 15:57:33 -08:00
InterfaceTx.h
Ioctl.h
Kconfig Kconfig: Remove useless "default N" lines 2014-02-20 14:38:06 +01:00
LeakyBucket.c staging: bcm: Replace FALSE with false 2013-10-28 14:13:46 -07:00
Macros.h
Makefile
Misc.c staging: bcm: Replace FALSE with false 2013-10-28 14:13:46 -07:00
PHSDefines.h
PHSModule.c drivers/staging: Remove useless return variables 2014-05-26 10:32:15 -07:00
PHSModule.h staging: bcm: Replace BOOLEAN with bool 2013-10-28 14:13:08 -07:00
Protocol.h
Prototypes.h staging: bcm: Replace BOOLEAN with bool 2013-10-28 14:13:08 -07:00
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 staging: bcm: Typedefs.h Fix "foo * bar" warning. 2014-03-16 22:24:41 -07:00
cntrl_SignalingInterface.h
headers.h staging: bcm: Replace <asm/uaccess.h> by <linux/uaccess.h> 2014-03-16 18:05:44 -07:00
hostmibs.c staging/bcm fix hostmibs.c checkpatch problems 2014-04-14 08:29:28 -07:00
led_control.c staging: bcm: Replace FALSE with false 2013-10-28 14:13:46 -07:00
led_control.h
nvm.c Staging: bcm: Remove unnecessary parentheses 2014-03-19 13:53:56 -07:00
nvm.h
sort.c
target_params.h
vendorspecificextn.c staging: bcm: Replace BOOLEAN with bool 2013-10-28 14:13:08 -07:00
vendorspecificextn.h staging: bcm: Replace BOOLEAN with bool 2013-10-28 14:13:08 -07:00