Skip to content

Commit

Permalink
hsr: don't call genl_unregister_mc_group()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
jmberg-intel authored and davem330 committed Nov 19, 2013
1 parent 2ecf753 commit 03ed382
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions net/hsr/hsr_netlink.c
Original file line number Diff line number Diff line change
Expand Up @@ -435,9 +435,7 @@ int __init hsr_netlink_init(void)

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);
}

Expand Down

0 comments on commit 03ed382

Please sign in to comment.