]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: do not check orig_dev in vlan del
authorVivien Didelot <vivien.didelot@gmail.com>
Fri, 14 Jun 2019 17:49:19 +0000 (13:49 -0400)
committerDavid S. Miller <davem@davemloft.net>
Sat, 15 Jun 2019 03:20:07 +0000 (20:20 -0700)
commita9238fb8d38a6c6f33b666e3c09508dd5e3ba3eb
tree4e50ba1294406535d731e85ca3045b942eca411f
parentebfbb6a6a07a45866fed53fb94279f2405f8deda
net: dsa: do not check orig_dev in vlan del

The current DSA code handling switchdev objects does not recurse into
the lower devices thus is never called with an orig_dev member being
a bridge device, hence remove this useless check.

At the same time, remove the comments about the callers, which is
unlikely to be updated if the code changes and thus will be confusing.

Signed-off-by: Vivien Didelot <vivien.didelot@gmail.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dsa/port.c