bridge: Cleanup of unncessary check.
authorRami Rosen <ramirose@gmail.com>
Sat, 6 Sep 2014 10:08:08 +0000 (13:08 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 9 Sep 2014 18:32:11 +0000 (11:32 -0700)
This patch removes an unncessary check in the br_afspec() method of
br_netlink.c.

Signed-off-by: Rami Rosen <ramirose@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_netlink.c

index 7c97a26..90a91e1 100644 (file)
@@ -257,9 +257,6 @@ static int br_afspec(struct net_bridge *br,
                        } else
                                err = br_vlan_add(br, vinfo->vid, vinfo->flags);
 
-                       if (err)
-                               break;
-
                        break;
 
                case RTM_DELLINK: