aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/macvlan.c
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2007-11-20 01:00:00 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 17:54:23 -0500
commit59891d53f4a31402f8bd1f8c89e0e2c07d51b2cd (patch)
tree9123f42aa59540b43ac4621252ac24ab4d1a4b9f /drivers/net/macvlan.c
parent1b0b04f9fb657a9ee85e3b9388394b9b943f7ffc (diff)
[MACVLAN]: Remove unnecessary IFF_UP check
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>
Diffstat (limited to 'drivers/net/macvlan.c')
-rw-r--r--drivers/net/macvlan.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/macvlan.c b/drivers/net/macvlan.c
index e8dc2f44fec9..9f4d65c3095f 100644
--- a/drivers/net/macvlan.c
+++ b/drivers/net/macvlan.c
@@ -73,8 +73,6 @@ static void macvlan_broadcast(struct sk_buff *skb,
73 for (i = 0; i < MACVLAN_HASH_SIZE; i++) { 73 for (i = 0; i < MACVLAN_HASH_SIZE; i++) {
74 hlist_for_each_entry_rcu(vlan, n, &port->vlan_hash[i], hlist) { 74 hlist_for_each_entry_rcu(vlan, n, &port->vlan_hash[i], hlist) {
75 dev = vlan->dev; 75 dev = vlan->dev;
76 if (unlikely(!(dev->flags & IFF_UP)))
77 continue;
78 76
79 nskb = skb_clone(skb, GFP_ATOMIC); 77 nskb = skb_clone(skb, GFP_ATOMIC);
80 if (nskb == NULL) { 78 if (nskb == NULL) {