1
0
Fork 0

driver: macvlan: Remove duplicated IFF_UP condition check in macvlan_forward_source

The function macvlan_forward_source_one has already checked the flag
IFF_UP, so needn't check it outside in macvlan_forward_source too.

Signed-off-by: Gao Feng <gfree.wind@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
hifive-unleashed-5.1
Gao Feng 2016-11-21 08:26:38 +08:00 committed by David S. Miller
parent dad42c3038
commit fc51f2b7e5
1 changed files with 1 additions and 2 deletions

View File

@ -400,8 +400,7 @@ static void macvlan_forward_source(struct sk_buff *skb,
hlist_for_each_entry_rcu(entry, h, hlist) {
if (ether_addr_equal_64bits(entry->addr, addr))
if (entry->vlan->dev->flags & IFF_UP)
macvlan_forward_source_one(skb, entry->vlan);
macvlan_forward_source_one(skb, entry->vlan);
}
}