1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
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
cntrl_SignalingInterface.h Staging: bcm: Change B_UINT8 to u8 in cntrl_SignalingInterface.h 2012-10-29 17:07:57 -07:00
DDRInit.c Staging: bcm: DDRInit: fix up indentation issues. 2014-02-18 11:16:55 -08:00
DDRInit.h Staging: bcm: Remove typedef for _MINI_ADAPTER and call directly. 2012-06-04 21:09:22 -07:00
Debug.h Staging: bcm: Fix warning: "Prefer netdev_dbg(netdev, ... then dev_dbg(dev, ... then pr_debug(... to printk(KERN_DEBUG ..." 2013-01-07 10:57:51 -08:00
HandleControlPacket.c staging: bcm: Replace FALSE with false 2013-10-28 14:13:46 -07:00
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 Staging: bcm: Remove typedef for _U_MIBS_IP_ADDRESS and call directly. 2012-11-26 16:07:58 -08:00
InterfaceAdapter.h Staging: bcm: Change ULONG to unsigned long in InterfaceAdapter.h 2012-11-02 11:36:47 -07:00
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 Staging: bcm: InterfaceIdleMode.h: Checkpatch fixes 2012-10-23 20:28:19 -07:00
InterfaceInit.c staging: bcm: Remove unneeded boolean comparisons and reflow lines 2014-03-18 11:48:42 -07:00
InterfaceInit.h Staging: bcm: Add two products and remove an existing product. 2012-11-13 12:38:29 -08:00
InterfaceIsr.c staging: bcm: Cleanup unneeded boolean comparisons 2014-03-18 11:48:42 -07:00
InterfaceIsr.h Staging: bcm: Remove typedef for _S_INTERFACE_ADAPTER and call directly. 2012-11-02 11:36:46 -07:00
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 beceem: remove dead code 2010-11-01 09:50:16 -04:00
Ioctl.h staging: bcm: Fix typo in comments 2013-08-23 10:01:43 -07:00
IPv6Protocol.c staging: bcm: Remove unnecessary pointer casting 2013-10-29 17:03:40 -07:00
IPv6ProtocolHdr.h Staging: bcm: Remove typedef for IPV6HeaderFormatTag and call directly. 2013-01-07 10:49:02 -08:00
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
led_control.c staging: bcm: Replace FALSE with false 2013-10-28 14:13:46 -07:00
led_control.h Staging: bcm: Remove macro B_ULONG32 in led_control.h. 2013-01-07 10:51:50 -08:00
Macros.h Staging: bcm: Replace UCHAR with unsigned char in Macros.h 2013-01-07 10:56:43 -08:00
Makefile beceem: remove ARP spoofing 2010-11-01 09:53:58 -04:00
Misc.c staging: bcm: Replace FALSE with false 2013-10-28 14:13:46 -07:00
nvm.c Staging: bcm: Remove unnecessary parentheses 2014-03-19 13:53:56 -07:00
nvm.h Staging: bcm: Remove typedef for _FLASH_SECTOR_INFO. 2013-01-07 10:45:51 -08:00
PHSDefines.h Staging: bcm: Remove typedef for _S_PHS_RULE and call directly. 2013-01-07 10:54:49 -08:00
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 Staging: bcm: Remove typedef for TransportHeaderT and call directly. 2013-01-07 10:56:54 -08:00
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
sort.c Staging: bcm: Remove typedef for _MINI_ADAPTER and call directly. 2012-06-04 21:09:22 -07:00
target_params.h Staging: bcm: Remove typedef for _TARGET_PARAMS and call directly. 2013-01-07 10:54:01 -08:00
TODO beceem: update TODO list 2010-11-01 14:18:16 -04:00
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 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