mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
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: Florian Fainelli <[email protected]> Acked-by: Juergen Borleis <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
6905e5a5c8
commit
8e6c1812e6
1 changed files with 0 additions and 5 deletions
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue