linux/drivers/staging/vt6656
Julia Lawall 4d9db977f9 staging: Use available error codes
An error code is stored in a variable, but 0 is returned instead.  Use the
variable instead of 0.

The semantic match that finds this problem is as follows:
(http://coccinelle.lip6.fr/)

// <smpl>
@r@
local idexpression x;
constant C;
@@

if (...) { ...
  x = -C
  ... when != x
(
  return <+...x...+>;
|
  return NULL;
|
  return;
|
* return ...;
)
}
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-08-31 15:05:12 -07:00
..
80211hdr.h staging: vt6656: cleared checkpatch.pl findings in 80211hdr.h 2010-05-11 11:35:55 -07:00
80211mgr.c Staging: vt665*: fix typos concerning "management" 2010-06-18 10:42:07 -07:00
80211mgr.h staging: vt6656: removed not useful comments 2010-08-31 11:14:39 -07:00
aes_ccmp.c Staging: vt6656: fix up built-in compilation together with rt2870 2010-06-18 10:37:48 -07:00
aes_ccmp.h Staging: vt6656: code cleanup, fixed comments style at the end of headers 2010-05-11 11:36:01 -07:00
baseband.c staging: vt6656: removed not useful comments 2010-08-31 11:14:39 -07:00
baseband.h Staging: vt6656: code cleanup, resolved checkpatch findings in headers 2010-06-18 10:35:33 -07:00
bssdb.c staging: vt6656: removed not useful comments 2010-08-31 11:14:39 -07:00
bssdb.h Staging: vt6656: Remove PUINT from ttype.h 2010-08-02 18:16:27 -07:00
card.c Staging: vt6656: code cleanup, fixed 'for' statements 2010-06-18 10:34:59 -07:00
card.h Staging: vt6656: removed custom UCHAR/USHORT/UINT/ULONG/ULONGLONG typedefs 2010-05-18 14:51:08 -07:00
channel.c Staging: vt6656: code cleanup, fixed 'for' statements 2010-06-18 10:34:59 -07:00
channel.h Staging: vt6656: code cleanup, resolved checkpatch findings in headers 2010-06-18 10:35:33 -07:00
control.c staging: vt6656: removed NTSTATUS definition 2010-08-02 18:19:04 -07:00
control.h Staging: vt6656: code cleanup, resolved checkpatch findings in headers 2010-06-18 10:35:33 -07:00
country.h
datarate.c staging: vt6656: removed '#if 1'/'#if 0' definitions 2010-07-22 11:42:00 -07:00
datarate.h Staging: vt6656: removed custom UCHAR/USHORT/UINT/ULONG/ULONGLONG typedefs 2010-05-18 14:51:08 -07:00
desc.h Staging: vt6656: code cleanup, resolved checkpatch findings in headers 2010-06-18 10:35:33 -07:00
device_cfg.h Staging: vt6656: code cleanup, resolved checkpatch findings in headers 2010-06-18 10:35:33 -07:00
device.h staging: vt6656: removed macro to test bits 2010-08-31 11:31:26 -07:00
dpc.c staging: vt6656: removed macro to test bits 2010-08-31 11:31:26 -07:00
dpc.h Staging: vt6656: removed custom UCHAR/USHORT/UINT/ULONG/ULONGLONG typedefs 2010-05-18 14:51:08 -07:00
firmware.c staging: vt6656: removed NDIS_STATUS int redefinition 2010-08-31 11:31:26 -07:00
firmware.h Staging: vt6656: code cleanup, fixed comments style at the end of headers 2010-05-11 11:36:01 -07:00
hostap.c Staging: vt6656: removed custom UCHAR/USHORT/UINT/ULONG/ULONGLONG typedefs 2010-05-18 14:51:08 -07:00
hostap.h Staging: vt6656: code cleanup, fixed comments style at the end of headers 2010-05-11 11:36:01 -07:00
int.c staging: vt6656: removed NTSTATUS definition 2010-08-02 18:19:04 -07:00
int.h staging: vt6656: removed NTSTATUS definition 2010-08-02 18:19:04 -07:00
iocmd.h staging: vt6656: removed WPA_SM_Transtatus definition 2010-07-22 11:42:28 -07:00
ioctl.c staging: vt6656: removed not useful comments 2010-08-31 11:14:39 -07:00
ioctl.h Staging: vt6656: removed custom UCHAR/USHORT/UINT/ULONG/ULONGLONG typedefs 2010-05-18 14:51:08 -07:00
iowpa.h Staging: vt6656: code cleanup, resolved checkpatch findings in headers 2010-06-18 10:35:33 -07:00
iwctl.c staging: Use available error codes 2010-08-31 15:05:12 -07:00
iwctl.h staging: vt6656: removed not useful comments 2010-08-31 11:14:39 -07:00
Kconfig Staging/vt66*: kconfig, depends on WLAN 2009-12-23 11:27:50 -08:00
key.c staging: vt6656: resolved checkpatch finding 2010-08-31 11:35:06 -07:00
key.h Staging: vt6656: removed custom UCHAR/USHORT/UINT/ULONG/ULONGLONG typedefs 2010-05-18 14:51:08 -07:00
mac.c Staging: vt6656: code cleanup, fixed 'for' statements 2010-06-18 10:34:59 -07:00
mac.h Staging: vt6656: code cleanup, resolved checkpatch findings in headers 2010-06-18 10:35:33 -07:00
main_usb.c Staging: vt6656: problems in error handling 2010-08-31 11:35:06 -07:00
Makefile
mib.c staging: vt6656: removed NTSTATUS definition 2010-08-02 18:19:04 -07:00
mib.h staging: vt6656: removed NTSTATUS definition 2010-08-02 18:19:04 -07:00
michael.c Staging: vt6656: code cleanup, fixed 'for' statements 2010-06-18 10:34:59 -07:00
michael.h Staging: vt6656: code cleanup, resolved checkpatch findings in headers 2010-06-18 10:35:33 -07:00
power.c staging: vt6656: changed comments convention and removed spaces before tab 2010-08-31 11:34:53 -07:00
power.h Staging: vt665*: fix typos concerning "management" 2010-06-18 10:42:07 -07:00
rc4.c Staging: vt6656: removed custom UCHAR/USHORT/UINT/ULONG/ULONGLONG typedefs 2010-05-18 14:51:08 -07:00
rc4.h Staging: vt6656: removed custom UCHAR/USHORT/UINT/ULONG/ULONGLONG typedefs 2010-05-18 14:51:08 -07:00
rf.c Staging: vt6656: removed custom UCHAR/USHORT/UINT/ULONG/ULONGLONG typedefs 2010-05-18 14:51:08 -07:00
rf.h Staging: vt6656: code cleanup, resolved checkpatch findings in headers 2010-06-18 10:35:33 -07:00
rndis.h Staging: vt6656: code cleanup, resolved checkpatch findings in headers 2010-06-18 10:35:33 -07:00
rxtx.c staging: vt6656: removed custom definitions of Ethernet packet types 2010-08-31 11:31:25 -07:00
rxtx.h staging: vt6656: removed NTSTATUS definition 2010-08-02 18:19:04 -07:00
srom.h Staging: vt6656: code cleanup, fixed comments style at the end of headers 2010-05-11 11:36:01 -07:00
tcrc.c Staging: vt6656: removed custom UCHAR/USHORT/UINT/ULONG/ULONGLONG typedefs 2010-05-18 14:51:08 -07:00
tcrc.h Staging: vt6656: removed custom UCHAR/USHORT/UINT/ULONG/ULONGLONG typedefs 2010-05-18 14:51:08 -07:00
tether.c Staging: vt6656: removed custom UCHAR/USHORT/UINT/ULONG/ULONGLONG typedefs 2010-05-18 14:51:08 -07:00
tether.h staging: vt6656: removed custom definitions of Ethernet packet types 2010-08-31 11:31:25 -07:00
tkip.c Staging: vt6656: fix up built-in compilation together with rt2870 2010-06-18 10:37:48 -07:00
tkip.h Staging: vt6656: code cleanup, fixed comments style at the end of headers 2010-05-11 11:36:01 -07:00
tmacro.h Staging: vt6656: code cleanup, fixed comments style at the end of headers 2010-05-11 11:36:01 -07:00
TODO Staging: update TODO files 2009-11-30 16:39:42 -08:00
ttype.h Staging: vt6656: Remove PUINT from ttype.h 2010-08-02 18:16:27 -07:00
upc.h Staging: vt6656: removed custom UCHAR/USHORT/UINT/ULONG/ULONGLONG typedefs 2010-05-18 14:51:08 -07:00
usbpipe.c staging: vt6656: removed macro to test bits 2010-08-31 11:31:26 -07:00
usbpipe.h staging: vt6656: removed NTSTATUS definition 2010-08-02 18:19:04 -07:00
vntconfiguration.dat
wcmd.c staging: vt6656: removed not useful comments 2010-08-31 11:14:39 -07:00
wcmd.h staging: vt6656: removed TxInSleep definition 2010-07-08 13:01:05 -07:00
wctl.c staging: vt6656: replace IS_ETH_ADDRESS_EQUAL with compare_ether_addr 2010-06-24 14:15:07 -07:00
wctl.h Staging: vt6656: removed custom UCHAR/USHORT/UINT/ULONG/ULONGLONG typedefs 2010-05-18 14:51:08 -07:00
wmgr.c staging: vt6656: removed not useful comments 2010-08-31 11:14:39 -07:00
wmgr.h staging: vt6656: removed not useful comments 2010-08-31 11:14:39 -07:00
wpa2.c Staging: vt6656: removed custom UCHAR/USHORT/UINT/ULONG/ULONGLONG typedefs 2010-05-18 14:51:08 -07:00
wpa2.h Staging: vt6656: code cleanup, resolved checkpatch findings in headers 2010-06-18 10:35:33 -07:00
wpa.c staging: vt6656: removed extra spaces 2010-08-31 11:35:05 -07:00
wpa.h Staging: vt6656: code cleanup, fixed comments style at the end of headers 2010-05-11 11:36:01 -07:00
wpactl.c staging: vt6656: removed not useful comments 2010-08-31 11:14:39 -07:00
wpactl.h Staging: vt6656: removed custom UCHAR/USHORT/UINT/ULONG/ULONGLONG typedefs 2010-05-18 14:51:08 -07:00