aboutsummaryrefslogtreecommitdiffstats
path: root/net/dsa/tag_qca.c
diff options
context:
space:
mode:
authorFlorian Fainelli <f.fainelli@gmail.com>2017-04-08 08:55:21 -0700
committerDavid S. Miller <davem@davemloft.net>2017-04-08 13:49:36 -0700
commit9d7f9c4f78e95dd9d17199a53d903262530be62e (patch)
tree261343d60e5e96e2b671c4fbb26524fbeca73829 /net/dsa/tag_qca.c
parentskbuff: Extend gso_type to unsigned int. (diff)
downloadlinux-dev-9d7f9c4f78e95dd9d17199a53d903262530be62e.tar.xz
linux-dev-9d7f9c4f78e95dd9d17199a53d903262530be62e.zip
net: dsa: Do not check for NULL dst in tag parsers
dsa_switch_rcv() already tests for dst == NULL, so there is no need to duplicate the same check within the tag receive functions. Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dsa/tag_qca.c')
-rw-r--r--net/dsa/tag_qca.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/net/dsa/tag_qca.c b/net/dsa/tag_qca.c
index 4e0dad759d04..6579d6db1bc6 100644
--- a/net/dsa/tag_qca.c
+++ b/net/dsa/tag_qca.c
@@ -75,9 +75,6 @@ static int qca_tag_rcv(struct sk_buff *skb, struct net_device *dev,
int port;
__be16 *phdr, hdr;
- if (unlikely(!dst))
- goto out_drop;
-
skb = skb_unshare(skb, GFP_ATOMIC);
if (!skb)
goto out;