aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/mesh.c
diff options
context:
space:
mode:
authorDan Carpenter <error27@gmail.com>2010-04-28 05:01:15 -0400
committerJohn W. Linville <linville@tuxdriver.com>2010-04-28 16:50:28 -0400
commitf7f7cc47fce6f01c3d3374c51508859c328ad5b2 (patch)
treeb51b8d9bafedabc87362ff5767c2e94f9b3ed5a5 /net/mac80211/mesh.c
parentbaff8006b58bb7fca5d1ea1825bc8c6486900303 (diff)
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>
Diffstat (limited to 'net/mac80211/mesh.c')
0 files changed, 0 insertions, 0 deletions