Fix debugfs_create_*'s error checking method for wireless/rt2x00/
authorZhaolei <zhaolei@cn.fujitsu.com>
Wed, 22 Oct 2008 09:07:25 +0000 (17:07 +0800)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 31 Oct 2008 23:00:45 +0000 (19:00 -0400)
commitcfa3fa405a5eafd5d5c53b18abc00ca998c35eef
treed2be111acfed0d9f563453eb205642d05c964f89
parent9b24001db145cf1da76a479918373c18aa10bb4b
Fix debugfs_create_*'s error checking method for wireless/rt2x00/

debugfs_create_*() 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: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rt2x00/rt2x00debug.c