wl12xx: remove redundant debugfs_remove_recursive() call
authorEliad Peller <eliad@wizery.com>
Wed, 15 Dec 2010 09:47:54 +0000 (11:47 +0200)
committerLuciano Coelho <coelho@ti.com>
Mon, 24 Jan 2011 20:11:45 +0000 (22:11 +0200)
commit3c2c04a15f5fe5d169fe343c9eb7c1856d3033d3
tree26ad5b833ff5c528852f21ac7108b33aac73a055
parent4a4fdf2e0b9e3534f6ec4f3e7077470bd66924ab
wl12xx: remove redundant debugfs_remove_recursive() call

Upon rmmod, the <debugfs>/ieee80211/phyX dir is being removed.
later, we try to remove <debugfs>/ieee80211/phyX/wl12xx, which
might result in NULL dereference.

Remove the excessive debugfs_remove_recursive() call.
(consequently, there is no more need to save wl->rootdir)

Reported-by: Arik Nemtsov <arik@wizery.com>
Signed-off-by: Eliad Peller <eliad@wizery.com>
Signed-off-by: Luciano Coelho <luciano.coelho@nokia.com>
drivers/net/wireless/wl12xx/debugfs.c
drivers/net/wireless/wl12xx/wl12xx.h