linux_old1/drivers/net/wireless
Dan Carpenter f7f7cc47fc iwl: cleanup: remove unneeded error handling
This is just a cleanup and doesn't change how the code works.

debugfs_create_dir() and debugfs_create_file() return an error pointer
(-ENODEV) if CONFIG_DEBUG_FS is not enabled, otherwise if an error occurs
they return NULL.  This is how they are implemented and what it says in
the DebugFS documentation.  DebugFS can not be compiled as a module.

As a result, we only need to check for error pointers and particularly
-ENODEV one time to know that DebugFS is enabled.  This patch keeps the
first check for error pointers and removes the rest.

The other reason for this patch, is that it silences some Smatch warnings.
Smatch sees the condition "(result != -ENODEV)" and assumes that it's
possible for "result" to equal -ENODEV.  If it were possible it would lead
to an error pointer dereference.  But since it's not, we can just remove
the check.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
2010-04-28 16:50:28 -04:00
..
ath ath9k: Added get_survey callback in order to get channel noise 2010-04-28 16:50:25 -04:00
b43 b43: remove usage of deprecated noise value 2010-04-28 16:48:21 -04:00
b43legacy b43legacy: remove usage of deprecated noise value 2010-04-28 16:48:21 -04:00
hostap Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6 2010-02-25 23:26:21 -08:00
ipw2x00 Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6 into merge 2010-04-08 13:34:54 -04:00
iwlwifi mac80211: give virtual interface to hw_scan 2010-04-27 16:09:23 -04:00
iwmc3200wifi iwl: cleanup: remove unneeded error handling 2010-04-28 16:50:28 -04:00
libertas libertas: fix 8686 firmware loading regression 2010-04-28 16:49:23 -04:00
libertas_tf libertas_tf: remove usage of deprecated noise value 2010-04-28 16:48:21 -04:00
orinoco orinoco: have sparse check endian issues 2010-04-19 16:41:42 -04:00
p54 p54: remove usage of deprecated noise value 2010-04-28 16:48:22 -04:00
prism54 wireless/prism54: remove trailing space in messages 2010-03-31 14:39:07 -04:00
rt2x00 rt2x00: rt2800lib: update rfcsr & bbp init code for SoC devices 2010-04-28 16:50:27 -04:00
rtl818x rtl8180: use cached queue mapping for skb in rtl8180_tx 2010-04-28 16:50:24 -04:00
wl12xx wl1271: fix a bunch of sparse warnings 2010-04-28 16:50:27 -04:00
zd1211rw zd1211rw: fix potential array underflow 2010-03-02 14:28:49 -05:00
Kconfig libertastf: add configurable debug messages 2010-04-26 14:21:26 -04:00
Makefile
adm8211.c Merge branch 'master' of ssh://master.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6 2010-02-14 17:45:59 -08:00
adm8211.h
airo.c airo : Print of firmware version 2010-03-15 15:28:20 -04:00
airo.h
airo_cs.c
at76c50x-usb.c mac80211: give virtual interface to hw_scan 2010-04-27 16:09:23 -04:00
at76c50x-usb.h
atmel.c
atmel.h
atmel_cs.c
atmel_pci.c drivers/net/: use DEFINE_PCI_DEVICE_TABLE() 2010-01-07 23:54:26 -08:00
mac80211_hwsim.c mac80211: give virtual interface to hw_scan 2010-04-27 16:09:23 -04:00
mwl8k.c mwl8k: remove usage of deprecated noise value 2010-04-28 16:48:19 -04:00
ray_cs.c wireless/raylink: remove trailing space in messages 2010-03-31 14:39:07 -04:00
ray_cs.h
rayctl.h
rndis_wlan.c Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6 into merge 2010-04-08 13:34:54 -04:00
wl3501.h
wl3501_cs.c drivers/net/wireless: Use IW_HANDLER macro 2010-03-23 16:50:27 -04:00
zd1201.c wireless: convert to use netdev_for_each_mc_addr 2010-02-28 01:44:01 -08:00
zd1201.h