diff options
Diffstat (limited to 'net/bridge/br_netlink.c')
-rw-r--r-- | net/bridge/br_netlink.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/net/bridge/br_netlink.c b/net/bridge/br_netlink.c index c2fd6bc5f080..e74b6d530cb6 100644 --- a/net/bridge/br_netlink.c +++ b/net/bridge/br_netlink.c | |||
@@ -195,8 +195,7 @@ void br_ifinfo_notify(int event, struct net_bridge_port *port) | |||
195 | rtnl_notify(skb, net, 0, RTNLGRP_LINK, NULL, GFP_ATOMIC); | 195 | rtnl_notify(skb, net, 0, RTNLGRP_LINK, NULL, GFP_ATOMIC); |
196 | return; | 196 | return; |
197 | errout: | 197 | errout: |
198 | if (err < 0) | 198 | rtnl_set_sk_err(net, RTNLGRP_LINK, err); |
199 | rtnl_set_sk_err(net, RTNLGRP_LINK, err); | ||
200 | } | 199 | } |
201 | 200 | ||
202 | 201 | ||
@@ -482,9 +481,7 @@ int __init br_netlink_init(void) | |||
482 | int err; | 481 | int err; |
483 | 482 | ||
484 | br_mdb_init(); | 483 | br_mdb_init(); |
485 | err = rtnl_af_register(&br_af_ops); | 484 | rtnl_af_register(&br_af_ops); |
486 | if (err) | ||
487 | goto out; | ||
488 | 485 | ||
489 | err = rtnl_link_register(&br_link_ops); | 486 | err = rtnl_link_register(&br_link_ops); |
490 | if (err) | 487 | if (err) |
@@ -494,7 +491,6 @@ int __init br_netlink_init(void) | |||
494 | 491 | ||
495 | out_af: | 492 | out_af: |
496 | rtnl_af_unregister(&br_af_ops); | 493 | rtnl_af_unregister(&br_af_ops); |
497 | out: | ||
498 | br_mdb_uninit(); | 494 | br_mdb_uninit(); |
499 | return err; | 495 | return err; |
500 | } | 496 | } |