projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6905e5a
)
net: dsa: Remove redundant NULL dst check
author
Florian Fainelli
<
[email protected]
>
Thu, 20 Apr 2017 22:47:22 +0000
(15:47 -0700)
committer
David S. Miller
<
[email protected]
>
Fri, 21 Apr 2017 14:41:24 +0000
(10:41 -0400)
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 <
[email protected]
>
Acked-by: Juergen Borleis <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
net/dsa/tag_lan9303.c
patch
|
blob
|
history
diff --git
a/net/dsa/tag_lan9303.c
b/net/dsa/tag_lan9303.c
index 563b6c8fe445ed6e9fac7e0d0d1bf0b45568b9f0..70130ed5c21a9fa5e218e51ab4448c35c9005eba 100644
(file)
--- 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)) {