Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fc51f2b7 authored by Gao Feng's avatar Gao Feng Committed by David S. Miller
Browse files

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: default avatarGao Feng <gfree.wind@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent dad42c30
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -400,7 +400,6 @@ 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);
	}
}