linux_dsm_epyc7002/drivers/net/wireless/iwmc3200wifi
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
..
bus.h
cfg80211.c iwmc3200wifi: mark some pmksa functions static 2010-03-10 17:09:39 -05:00
cfg80211.h
commands.c iwmc3200wifi: typo fix and code cleanup 2010-03-10 17:09:39 -05:00
commands.h iwmc3200wifi: refuse to associate on unallowed channels 2010-03-10 17:09:37 -05:00
debug.h iwmc3200wifi: Add a last_fw_err debugfs entry 2009-09-01 12:48:28 -04:00
debugfs.c iwl: cleanup: remove unneeded error handling 2010-04-28 16:50:28 -04:00
eeprom.c iwmc3200wifi: Update wireless_mode with eeprom values 2009-11-28 15:04:42 -05:00
eeprom.h iwmc3200wifi: Update wireless_mode with eeprom values 2009-11-28 15:04:42 -05:00
fw.c iwmc3200wifi: Set wiphy firmware version 2009-10-27 16:48:27 -04:00
fw.h
hal.c iwmc3200wifi: add ftrace event tracing support 2010-03-10 17:09:38 -05:00
hal.h iwmc3200wifi: increase concatenated buffer 2010-03-10 17:09:39 -05:00
iwm.h iwmc3200wifi: protect rx_tickets and rx_packets[] lists 2010-03-10 17:09:38 -05:00
Kconfig iwmc3200wifi: add ftrace event tracing support 2010-03-10 17:09:38 -05:00
lmac.h iwmc3200wifi: CT kill support 2009-10-27 16:48:24 -04:00
main.c iwmc3200wifi: protect rx_tickets and rx_packets[] lists 2010-03-10 17:09:38 -05:00
Makefile iwmc3200wifi: check sparse endianness annotations 2010-04-16 15:47:02 -04:00
netdev.c iwmc3200wifi: Fix test of unsigned in iwm_ntf_stop_resume_tx() 2009-12-21 11:32:25 -05:00
rx.c iwmc3200wifi: Fix sparse warnings 2010-04-16 15:47:00 -04:00
rx.h
sdio.c iwmc3200wifi: declare MODULE_FIRMWARE 2009-11-11 15:23:52 -05:00
sdio.h imwc3200: move iwmc3200 SDIO ids to sdio_ids.h 2009-07-26 19:25:47 -07:00
trace.c iwmc3200wifi: add ftrace event tracing support 2010-03-10 17:09:38 -05:00
trace.h iwmc3200wifi: Fix sparse warnings 2010-04-16 15:47:00 -04:00
tx.c iwmc3200wifi: Fix sparse warnings 2010-04-16 15:47:00 -04:00
umac.h iwmc3200wifi: typo fix and code cleanup 2010-03-10 17:09:39 -05:00