From: Gao Feng Date: Mon, 21 Nov 2016 00:26:38 +0000 (+0800) Subject: driver: macvlan: Remove duplicated IFF_UP condition check in macvlan_forward_source X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=fc51f2b7e5f6cc0bb1958efda18926b0c600e9d9;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: David S. Miller --- diff --git a/drivers/net/macvlan.c b/drivers/net/macvlan.c index 13b7e0b9bd9b..7ddfd2c917ea 100644 --- a/drivers/net/macvlan.c +++ b/drivers/net/macvlan.c @@ -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); } }