linux/drivers/staging
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
..
android staging: android: describe use of memory barrier on sync.c 2014-05-25 11:09:14 -07:00
bcm drivers/staging: Remove useless return variables 2014-05-26 10:32:15 -07:00
ced1401 Staging: ced1401: Fix no new typedef warning in ced_ioctl.h 2014-03-18 13:30:44 -07:00
comedi staging: comedi: removing warnings reported by checkpatch tool on cb_pcimdas.c 2014-05-24 01:57:14 +09:00
cptm1217
crystalhd Staging: crystalhd: Improve kzalloc calls in crystalhd_lnx.c 2014-04-18 16:22:15 -07:00
cxt1e1 staging: cxt1e1: remove set a value to static variable 2014-05-23 20:38:43 +09:00
dgap Staging: dgap: Fixed iomem accesses in dgap.c 2014-05-25 11:09:14 -07:00
dgnc staging: dgnc: Use time_after_eq() 2014-05-25 11:53:44 -07:00
dgrp drivers/staging/dgrp:dgrp_tty.c: Fix line over 80 characters. 2014-03-18 10:53:21 -07:00
et131x staging: et131x: Remove empty file Module.symvers 2014-05-23 20:43:47 +09:00
frontier staging: frontier: fix some indenting 2014-05-03 19:44:53 -04:00
ft1000 staging: ft1000: Remove useless return variables 2014-05-24 02:14:31 +09:00
fwserial drivers/staging: Use RCU_INIT_POINTER(x, NULL) in fwserial/fwserial.c 2014-04-25 14:01:40 -07:00
gdm72xx staging: gdm72xx: code cleanup 2014-05-24 07:23:15 +09:00
gdm724x Staging: gdm724x: Fix unchecked sscanf values in gdm_lte.c 2014-03-18 11:35:53 -07:00
goldfish goldfish: clean up staging ifdefs 2014-05-15 13:20:41 -07:00
gs_fpgaboot staging: gs_fpgaboot: Fixed code style issues 2014-05-15 13:56:10 -07:00
iio Third round of new stuff for IIO in the 3.16 cycle. 2014-05-25 10:56:30 -07:00
imx-drm imx-hdmi: Make checkpatch happy 2014-05-23 20:44:43 +09:00
keucr staging: Convert __FUNCTION__ to __func__ 2014-05-25 11:05:07 -07:00
line6 staging/line6: blank line after declaration cleanup 2014-05-15 13:54:29 -07:00
lustre staging: lustre: Fixed warnings about using 0 as NULL ptr 2014-05-25 10:59:52 -07:00
media staging: lirc: Fix sparse warnings 2014-05-23 21:39:28 +09:00
mt29f_spinand staging/mt29f_spinand: Terminate of match table 2014-05-25 10:59:52 -07:00
netlogic staging: netlogic: fix missing a blank line after declarations 2014-04-25 16:05:12 -07:00
nokia_h4p staging: nokia_h4p: Fix a coding style problem 2014-05-03 19:44:52 -04:00
nvec
octeon Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next 2014-04-02 20:53:45 -07:00
octeon-usb staging: Convert __FUNCTION__ to __func__ 2014-05-25 11:05:07 -07:00
olpc_dcon staging/olpc_dcon: fix checkpatch warnings 2014-05-24 07:23:15 +09:00
ozwpan staging: ozwpan: Remove useless return variables 2014-05-23 21:11:57 +09:00
panel staging: panel: (coding style) Multiple assignments 2014-05-25 10:59:52 -07:00
phison
quickstart
rtl8188eu staging: rtl8188eu: use time_before/time_after and change type of ips_deny_time 2014-05-25 11:14:10 -07:00
rtl8192e drivers/staging: Remove useless return variables 2014-05-26 10:32:15 -07:00
rtl8192ee staging: r8192ee: Turn on build of the new driver 2014-05-23 11:33:56 +09:00
rtl8192u drivers/staging: Remove useless return variables 2014-05-26 10:32:15 -07:00
rtl8712 staging: rtl8712: remove _malloc() 2014-05-25 11:04:44 -07:00
rtl8723au staging: rtl8723au: _InitQueueReservedPage(): Remove pointless brackets 2014-05-25 15:14:46 -07:00
rtl8821ae staging: rtl8821ae: add static for local symbols in rtl_btc.c 2014-05-25 11:11:18 -07:00
rts5208 staging: rts5208: Use pci_device_id rather than DEFINE_PCI_DEVICE_TABLE 2014-05-24 02:14:31 +09:00
sep drivers/staging: Remove useless return variables 2014-05-26 10:32:15 -07:00
serqt_usb2 staging: serqt_usb2: Clean up initializations of variables 2014-05-03 20:16:39 -04:00
silicom drivers/staging: Remove useless return variables 2014-05-26 10:32:15 -07:00
skein staging/skein: variable/member name cleanup 2014-05-21 11:17:42 +09:00
slicoss staging: slicoss: clean up use of dev_err 2014-05-25 10:59:53 -07:00
speakup drivers/staging/speakup/: avoid world-writable sysfs files. 2014-05-23 20:31:22 +09:00
ste_rmi4
tidspbridge staging/tidspbridge/rmgr/mgr.c Fix quoted string split across lines 2014-03-19 09:27:39 -07:00
unisys Staging: unisys: visorchipset: Remove filexfer.c 2014-05-23 20:21:10 +09:00
usbip staging: Convert __FUNCTION__ to __func__ 2014-05-25 11:05:07 -07:00
vme Merge 3.15-rc2 into staging-next 2014-04-22 10:08:40 -07:00
vt6655 staging: vt6655: Remove useless return variables 2014-05-23 21:35:27 +09:00
vt6656 staging: vt6656: MACvSetKeyEntry create structure to write key 2014-05-25 15:13:59 -07:00
winbond staging/winbond: fix a style error 2014-05-23 21:13:40 +09:00
wlags49_h2 staging: wlags49_h2: wl_priv: Remove useless return variables 2014-05-24 01:55:14 +09:00
wlags49_h25
wlan-ng drivers/staging: Remove useless return variables 2014-05-26 10:32:15 -07:00
xgifb Staging: xgifb: Fixed a code-style warning 2014-05-24 04:42:20 +09:00
xillybus staging: xillybus: Use devm_ API on probe and remove 2014-05-24 02:11:48 +09:00
Kconfig staging: remove rts5139 driver code 2014-05-23 20:46:41 +09:00
Makefile staging: remove rts5139 driver code 2014-05-23 20:46:41 +09:00
staging.c