Skip to content

Commit

Permalink
net: dsa: Remove redundant NULL dst check
Browse files Browse the repository at this point in the history
tag_lan9303.c does check for a NULL dst but that's already checked by
dsa_switch_rcv() one layer above.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Acked-by: Juergen Borleis <jbe@pengutronix.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
ffainelli authored and davem330 committed Apr 21, 2017
1 parent 6905e5a commit 8e6c181
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions net/dsa/tag_lan9303.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 8e6c181

Please sign in to comment.