diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2017-04-08 08:55:21 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-04-08 13:49:36 -0700 |
commit | 9d7f9c4f78e95dd9d17199a53d903262530be62e (patch) | |
tree | 261343d60e5e96e2b671c4fbb26524fbeca73829 /net/dsa/tag_edsa.c | |
parent | 7f564528a480084e2318cd48caba7aef4a54a77f (diff) |
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.c | 3 |
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; |