2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-24 05:04:00 +08:00
linux-next/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
cntrl_SignalingInterface.h
DDRInit.c Staging: bcm: DDRInit: fix up indentation issues. 2014-02-18 11:16:55 -08:00
DDRInit.h
Debug.h
HandleControlPacket.c
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
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 beeceem: Replace C99 comments with C89 ones and remove unneeded comments in InterfaceRx.c 2014-01-08 15:59:27 -08:00
InterfaceRx.h
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
IPv6Protocol.c
IPv6ProtocolHdr.h
Kconfig Kconfig: Remove useless "default N" lines 2014-02-20 14:38:06 +01:00
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 staging: bcm: Typedefs.h Fix "foo * bar" warning. 2014-03-16 22:24:41 -07:00
vendorspecificextn.c
vendorspecificextn.h