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

Commit 8e6c1812 authored by Florian Fainelli's avatar Florian Fainelli Committed by David S. Miller
Browse files

net: dsa: Remove redundant NULL dst check



tag_lan9303.c does check for a NULL dst but that's already checked by
dsa_switch_rcv() one layer above.

Signed-off-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
Acked-by: default avatarJuergen Borleis <jbe@pengutronix.de>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 6905e5a5
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -79,11 +79,6 @@ static struct sk_buff *lan9303_rcv(struct sk_buff *skb, struct net_device *dev,
	struct dsa_switch *ds;
	unsigned int source_port;

	if (unlikely(!dst)) {
		dev_warn_ratelimited(&dev->dev, "Dropping packet, due to missing switch tree device\n");
		return NULL;
	}

	ds = dst->ds[0];

	if (unlikely(!ds)) {