summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorFlorian Fainelli2017-04-21 00:47:22 +0200
committerDavid S. Miller2017-04-21 16:41:24 +0200
commit8e6c1812e632ae3b54a1a9da759cad762f633e11 (patch)
treef39e3b352015da11ec69a6d3921576c03c0bcb7b /net
parentnet/mlx5e: IPoIB, Fix error handling in mlx5_rdma_netdev_alloc() (diff)
downloadkernel-qcow2-linux-8e6c1812e632ae3b54a1a9da759cad762f633e11.tar.gz
kernel-qcow2-linux-8e6c1812e632ae3b54a1a9da759cad762f633e11.tar.xz
kernel-qcow2-linux-8e6c1812e632ae3b54a1a9da759cad762f633e11.zip
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: Florian Fainelli <f.fainelli@gmail.com> Acked-by: Juergen Borleis <jbe@pengutronix.de> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r--net/dsa/tag_lan9303.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/net/dsa/tag_lan9303.c b/net/dsa/tag_lan9303.c
index 563b6c8fe445..70130ed5c21a 100644
--- a/net/dsa/tag_lan9303.c
+++ b/net/dsa/tag_lan9303.c
@@ -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)) {