[MACVLAN]: Remove unnecessary IFF_UP check
authorPatrick McHardy <kaber@trash.net>
Tue, 20 Nov 2007 06:00:00 +0000 (22:00 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 22:54:23 +0000 (14:54 -0800)
Only devices that are UP are in the hash, so macvlan_broadcast() doesn't
need to check for IFF_UP.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/macvlan.c

index e8dc2f44fec960d9d3b58127699e5a4ed9eee838..9f4d65c3095fecce519bd0b6e8e2c0d21cbdf03b 100644 (file)
@@ -73,8 +73,6 @@ static void macvlan_broadcast(struct sk_buff *skb,
        for (i = 0; i < MACVLAN_HASH_SIZE; i++) {
                hlist_for_each_entry_rcu(vlan, n, &port->vlan_hash[i], hlist) {
                        dev = vlan->dev;
-                       if (unlikely(!(dev->flags & IFF_UP)))
-                               continue;
 
                        nskb = skb_clone(skb, GFP_ATOMIC);
                        if (nskb == NULL) {