aboutsummaryrefslogtreecommitdiffstats
path: root/net/dsa/tag_edsa.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_edsa.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_edsa.c')
-rw-r--r--net/dsa/tag_edsa.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/net/dsa/tag_edsa.c b/net/dsa/tag_edsa.c
index 6a9b7a9e4e15..30520ff9c9a2 100644
--- a/net/dsa/tag_edsa.c
+++ b/net/dsa/tag_edsa.c
@@ -90,9 +90,6 @@ static int edsa_rcv(struct sk_buff *skb, struct net_device *dev,
int source_device;
int source_port;
- if (unlikely(dst == NULL))
- goto out_drop;
-
skb = skb_unshare(skb, GFP_ATOMIC);
if (skb == NULL)
goto out;