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

Commit 59891d53 authored by Patrick McHardy's avatar Patrick McHardy Committed by David S. Miller
Browse files

[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: default avatarPatrick McHardy <kaber@trash.net>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 1b0b04f9
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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) {