linux_dsm_epyc7002/drivers/net/wireless/cw1200
Peter Senna Tschudin 69253b6108 cw1200: 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: John W. Linville <linville@tuxdriver.com>
2014-06-19 15:49:12 -04:00
..
bh.c cw1200: When debug is enabled, display all wakeup conditions for the wait_event_interruptible_timeout() call. 2013-08-28 13:58:29 -04:00
bh.h
cw1200_sdio.c wireless: cw1200: Use consistent internal locking conventions 2013-12-05 14:54:47 -05:00
cw1200_spi.c Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless 2013-11-04 14:45:14 -05:00
cw1200.h cw1200: Fix up a large pile of sparse warnings 2013-06-24 14:44:24 -04:00
debug.c cw1200: Fix cw1200_debug_link_id 2014-04-14 14:31:42 -04:00
debug.h cw1200: Remove "ITP" debug subsystem. 2013-06-11 12:48:09 -04:00
fwio.c net: Replace min macro with min_t 2014-03-03 15:35:54 -05:00
fwio.h
hwbus.h Revert "cw1200: Don't perform SPI transfers in interrupt context" 2013-09-26 14:02:31 -04:00
hwio.c Revert "cw1200: Don't perform SPI transfers in interrupt context" 2013-09-26 14:02:31 -04:00
hwio.h cw1200: Fix up a large pile of sparse warnings 2013-06-24 14:44:24 -04:00
Kconfig cw1200: Eliminate the ETF debug/engineering code. 2013-06-11 12:48:10 -04:00
main.c Merge branch 'for-john' of git://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211-next 2014-01-13 14:40:59 -05:00
Makefile cw1200: Remove "ITP" debug subsystem. 2013-06-11 12:48:09 -04:00
pm.c wireless: cw1200: Fix memory leak in cw1200_wow_suspend() 2014-01-03 15:37:01 -05:00
pm.h
queue.c cw1200: Fix up a large pile of sparse warnings 2013-06-24 14:44:24 -04:00
queue.h
scan.c cw1200: Make the "scan failed" message into a warning 2013-12-05 14:54:45 -05:00
scan.h
sta.c cw1200: Remove useless return variables 2014-06-19 15:49:12 -04:00
sta.h mac80211: add vif to flush call 2014-04-09 10:55:29 +02:00
txrx.c cw1200: slight optimization of addr compare 2013-12-26 13:31:35 -05:00
txrx.h
wsm.c treewide: Fix typo in printk 2013-08-20 12:44:03 +02:00
wsm.h cw1200: Fix incorrect endianness annotation in a header field 2013-07-22 16:54:44 -04:00