提交 8e6c1812 编写于 作者: F Florian Fainelli 提交者: David S. Miller

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: NFlorian Fainelli <f.fainelli@gmail.com>
Acked-by: NJuergen Borleis <jbe@pengutronix.de>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 6905e5a5
...@@ -79,11 +79,6 @@ static struct sk_buff *lan9303_rcv(struct sk_buff *skb, struct net_device *dev, ...@@ -79,11 +79,6 @@ static struct sk_buff *lan9303_rcv(struct sk_buff *skb, struct net_device *dev,
struct dsa_switch *ds; struct dsa_switch *ds;
unsigned int source_port; 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]; ds = dst->ds[0];
if (unlikely(!ds)) { if (unlikely(!ds)) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册