linux-stable/drivers/staging/wlan-ng
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
..
Kconfig
Makefile
README
cfg80211.c Staging: wlan-ng: Fix sparse non-static symbol warning 2014-03-16 17:54:49 -07:00
hfa384x.h staging:wlan-ng:Fix sparse warning cast to restricted __le16 2014-03-07 13:48:03 -08:00
hfa384x_usb.c drivers/staging: Remove useless return variables 2014-05-26 10:32:15 -07:00
p80211conv.c staging: wlan-ng: use netdev_() instead of printk() 2014-05-24 02:08:16 +09:00
p80211conv.h
p80211hdr.h
p80211ioctl.h
p80211meta.h
p80211metadef.h
p80211metastruct.h
p80211mgmt.h Staging: wlan-ng: Fix do not add new typedefs in p80211mgmt.h 2014-03-10 23:35:11 -07:00
p80211msg.h
p80211netdev.c staging/wlan-ng: log with netdev_xxx and dev_xxx 2014-05-24 02:06:50 +09:00
p80211netdev.h Staging: wlan-ng: changing "* dev" to "*dev" 2013-10-17 09:12:15 -07:00
p80211req.c drivers/staging: Remove useless return variables 2014-05-26 10:32:15 -07:00
p80211req.h
p80211types.h
p80211wep.c Staging: wlan-ng: fix printk(KERN_DEBUG in p80211wep.c 2013-10-11 13:26:13 -07:00
prism2fw.c staging: wlan-ng: use netdev_() instead of printk() 2014-05-24 02:08:16 +09:00
prism2mgmt.c staging: wlan-ng: use netdev_() instead of printk() 2014-05-24 02:08:16 +09:00
prism2mgmt.h staging: wlan-ng: fix bad symbol declaration 2014-05-15 14:57:48 -07:00
prism2mib.c staging: wlan-ng: use netdev_() instead of printk() 2014-05-24 02:08:16 +09:00
prism2sta.c staging: wlan-ng: use netdev_() instead of printk() 2014-05-24 02:08:16 +09:00
prism2usb.c staging/wlan-ng: fix small coding style issues 2014-04-25 16:21:15 -07:00

README

TODO:
	- checkpatch.pl cleanups
	- sparse warnings
	- move to use the in-kernel wireless stack

Please send any patches or complaints about this driver to Greg
Kroah-Hartman <greg@kroah.com> and don't bother the upstream wireless
kernel developers about it, they want nothing to do with it.