Fix debugfs_create_bool's error checking method for wireless/iwlwifi/
authorZhaolei <zhaolei@cn.fujitsu.com>
Wed, 22 Oct 2008 09:06:12 +0000 (17:06 +0800)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 31 Oct 2008 23:00:44 +0000 (19:00 -0400)
commit9b24001db145cf1da76a479918373c18aa10bb4b
treefa72e2e0573750f532b05e142cd325ba22201bd4
parentac9440a4e4b284d3469120f0e049dff7c73c72a4
Fix debugfs_create_bool's error checking method for wireless/iwlwifi/

debugfs_create_bool() returns NULL if an error occurs, returns -ENODEV
when debugfs is not enabled in the kernel.

Signed-off-by: Zhao Lei <zhaolei@cn.fujitsu.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlwifi/iwl-debugfs.c