hsr: don't call genl_unregister_mc_group()
authorJohannes Berg <johannes.berg@intel.com>
Tue, 19 Nov 2013 14:19:34 +0000 (15:19 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 19 Nov 2013 21:39:06 +0000 (16:39 -0500)
There's no need to unregister the multicast group if the
generic netlink family is registered immediately after.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/hsr/hsr_netlink.c

index f182260be76d5fce1180e71e99c580b5c81b6e30..908e335dcdc9111b74a581e87a6b27e37b18b846 100644 (file)
@@ -435,9 +435,7 @@ fail_rtnl_link_register:
 
 void __exit hsr_netlink_exit(void)
 {
-       genl_unregister_mc_group(&hsr_genl_family, &hsr_network_genl_mcgrp);
        genl_unregister_family(&hsr_genl_family);
-
        rtnl_link_unregister(&hsr_link_ops);
 }