linux/drivers/net/wireless/wl12xx
Julia Lawall 9f19fa62ed drivers/net/wireless/wl12xx: Use available error codes
In each case, error codes are stored in ret, but the return value is always
0.  Return ret instead.

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>
Acked-by: Kalle Valo <kvalo@adurom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
2010-08-24 16:28:05 -04:00
..
Kconfig wl1271: the core wl1271 module shouldn't depend on SPI_MASTER 2010-06-02 16:13:35 -04:00
Makefile wl1271: moved scan operations to a separate file 2010-07-08 16:41:58 -04:00
wl12xx_80211.h drivers/net: use __packed annotation 2010-06-03 03:18:23 -07:00
wl1251_acx.c drivers/net/wireless/wl12xx: Use available error codes 2010-08-24 16:28:05 -04:00
wl1251_acx.h drivers/net: use __packed annotation 2010-06-03 03:18:23 -07:00
wl1251_boot.c wl1251: fix sparse-generated warnings 2010-07-26 15:09:03 -04:00
wl1251_boot.h
wl1251_cmd.c drivers/net/wireless/wl12xx: Use available error codes 2010-08-24 16:28:05 -04:00
wl1251_cmd.h Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/holtmann/bluetooth-next-2.6 2010-07-27 11:59:19 -04:00
wl1251_debugfs.c
wl1251_debugfs.h
wl1251_event.c
wl1251_event.h drivers/net: use __packed annotation 2010-06-03 03:18:23 -07:00
wl1251_init.c
wl1251_init.h
wl1251_io.c
wl1251_io.h
wl1251_main.c mac80211: use cipher suite selectors 2010-08-16 16:45:11 -04:00
wl1251_ps.c
wl1251_ps.h
wl1251_reg.h
wl1251_rx.c wl1251: add get_survey callback in order to get channel noise 2010-07-29 12:46:47 -04:00
wl1251_rx.h drivers/net: use __packed annotation 2010-06-03 03:18:23 -07:00
wl1251_sdio.c wl1251: fix ELP_CTRL register reads 2010-06-08 09:31:21 -04:00
wl1251_spi.c wl12xx: Use MODULE_ALIAS macro at correct postion for SPI bus 2010-07-06 14:25:04 -04:00
wl1251_spi.h
wl1251_tx.c mac80211: use cipher suite selectors 2010-08-16 16:45:11 -04:00
wl1251_tx.h Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/holtmann/bluetooth-next-2.6 2010-07-27 11:59:19 -04:00
wl1251.h wl1251: add get_survey callback in order to get channel noise 2010-07-29 12:46:47 -04:00
wl1271_acx.c wl1271: Update hardware ARP filtering configuration handling 2010-07-08 16:35:51 -04:00
wl1271_acx.h Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6 into for-davem 2010-07-13 15:57:29 -04:00
wl1271_boot.c wl1271: Disable dynamic PS based on BT co-ext sense events 2010-07-08 16:35:51 -04:00
wl1271_boot.h
wl1271_cmd.c wl1271: moved scan operations to a separate file 2010-07-08 16:41:58 -04:00
wl1271_cmd.h Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6 into for-davem 2010-07-13 15:57:29 -04:00
wl1271_conf.h wl1271: read fem manufacturer value from nvs 2010-07-08 16:35:51 -04:00
wl1271_debugfs.c
wl1271_debugfs.h
wl1271_event.c wl1271: rewritten scanning code 2010-07-08 16:42:09 -04:00
wl1271_event.h Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6 into for-davem 2010-07-13 15:57:29 -04:00
wl1271_ini.h Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6 2010-06-11 11:34:06 -07:00
wl1271_init.c
wl1271_init.h
wl1271_io.c
wl1271_io.h
wl1271_main.c mac80211: use cipher suite selectors 2010-08-16 16:45:11 -04:00
wl1271_ps.c
wl1271_ps.h
wl1271_reg.h
wl1271_rx.c wl1271: add get_survey callback in order to get channel noise 2010-07-29 12:46:49 -04:00
wl1271_rx.h drivers/net: use __packed annotation 2010-06-03 03:18:23 -07:00
wl1271_scan.c wl1271: use per-channel max tx power passed by mac80211 when scanning 2010-07-08 16:42:23 -04:00
wl1271_scan.h wl1271: use __packed annotation 2010-07-12 16:05:31 -04:00
wl1271_sdio.c
wl1271_spi.c net: wl12xx: do not use kfree'd memory 2010-08-04 15:27:38 -04:00
wl1271_testmode.c
wl1271_testmode.h
wl1271_tx.c mac80211: use cipher suite selectors 2010-08-16 16:45:11 -04:00
wl1271_tx.h Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6 2010-06-11 11:34:06 -07:00
wl1271.h wl1271: add get_survey callback in order to get channel noise 2010-07-29 12:46:49 -04:00