aboutsummaryrefslogtreecommitdiffstats
path: root/net/bridge/br_device.c
diff options
context:
space:
mode:
authorVlad Yasevich <vyasevich@gmail.com>2014-10-03 11:29:17 -0400
committerDavid S. Miller <davem@davemloft.net>2014-10-05 21:21:36 -0400
commit3df6bf45ec008942f16f1814123c4bdebcf50741 (patch)
treeb32c86020856bb9ad6065d28c2bff015efeb54c0 /net/bridge/br_device.c
parentbridge: Add a default_pvid sysfs attribute (diff)
downloadlinux-dev-3df6bf45ec008942f16f1814123c4bdebcf50741.tar.xz
linux-dev-3df6bf45ec008942f16f1814123c4bdebcf50741.zip
bridge: Simplify pvid checks.
Currently, if the pvid is not set, we return an illegal vlan value even though the pvid value is set to 0. Since pvid of 0 is currently invalid, just return 0 instead. This makes the current and future checks simpler. Signed-off-by: Vladislav Yasevich <vyasevic@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/bridge/br_device.c')
0 files changed, 0 insertions, 0 deletions