summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/mac80211_hwsim.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2014-01-07 00:55:14 +0400
committerJohannes Berg <johannes.berg@intel.com>2014-01-10 23:12:57 +0400
commitcf7a6b2d5bd73acd8e3a78cf03259489bd83498a (patch)
treec5d36070e85251cb188f7813db9e5ee245fc29a6 /drivers/net/wireless/mac80211_hwsim.c
parent28cb1749e8dcf7f2b49174ae8531e3e5be741736 (diff)
downloadlinux-cf7a6b2d5bd73acd8e3a78cf03259489bd83498a.tar.xz
mac80211_hwsim: clean up netlink exit code
There's no need to print a message, and genl_unregister_family() can't really fail so remove the error message there as well. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'drivers/net/wireless/mac80211_hwsim.c')
-rw-r--r--drivers/net/wireless/mac80211_hwsim.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/net/wireless/mac80211_hwsim.c b/drivers/net/wireless/mac80211_hwsim.c
index 59c65c37bccd..03d7b1d360ae 100644
--- a/drivers/net/wireless/mac80211_hwsim.c
+++ b/drivers/net/wireless/mac80211_hwsim.c
@@ -2180,20 +2180,14 @@ failure:
static void hwsim_exit_netlink(void)
{
- int ret;
-
/* userspace test API hasn't been adjusted for multi-channel */
if (channels > 1)
return;
- printk(KERN_INFO "mac80211_hwsim: closing netlink\n");
/* unregister the notifier */
netlink_unregister_notifier(&hwsim_netlink_notifier);
/* unregister the family */
- ret = genl_unregister_family(&hwsim_genl_family);
- if (ret)
- printk(KERN_DEBUG "mac80211_hwsim: "
- "unregister family %i\n", ret);
+ genl_unregister_family(&hwsim_genl_family);
}
static const struct ieee80211_iface_limit hwsim_if_limits[] = {