summaryrefslogtreecommitdiffstats
path: root/net/8021q/vlan_dev.c
diff options
context:
space:
mode:
authorJoonwoo Park <joonwpark81@gmail.com>2008-07-08 03:22:16 -0700
committerDavid S. Miller <davem@davemloft.net>2008-07-08 03:22:16 -0700
commit26a25239d7a660cc7162e2463b48b40d544364d0 (patch)
tree1448f1721042dbbac1ff2f1fd4ba2bcb965f96ee /net/8021q/vlan_dev.c
parentacc81e1465d29e0284008770cc4b8bc90bd93bd7 (diff)
downloadblackbird-op-linux-26a25239d7a660cc7162e2463b48b40d544364d0.tar.gz
blackbird-op-linux-26a25239d7a660cc7162e2463b48b40d544364d0.zip
vlan: Use is_vlan_dev()
Use simplified is_vlan_dev function. Signed-off-by: Joonwoo Park <joonwpark81@gmail.com> Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/8021q/vlan_dev.c')
-rw-r--r--net/8021q/vlan_dev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/8021q/vlan_dev.c b/net/8021q/vlan_dev.c
index 4a8525927c27..88f318a9601d 100644
--- a/net/8021q/vlan_dev.c
+++ b/net/8021q/vlan_dev.c
@@ -694,7 +694,7 @@ static int vlan_dev_init(struct net_device *dev)
dev->hard_start_xmit = vlan_dev_hard_start_xmit;
}
- if (real_dev->priv_flags & IFF_802_1Q_VLAN)
+ if (is_vlan_dev(real_dev))
subclass = 1;
lockdep_set_class_and_subclass(&dev->_xmit_lock,
OpenPOWER on IntegriCloud