diff options
author | Joonwoo Park <joonwpark81@gmail.com> | 2008-07-08 06:22:16 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-07-08 06:22:16 -0400 |
commit | 26a25239d7a660cc7162e2463b48b40d544364d0 (patch) | |
tree | 1448f1721042dbbac1ff2f1fd4ba2bcb965f96ee | |
parent | acc81e1465d29e0284008770cc4b8bc90bd93bd7 (diff) |
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>
-rw-r--r-- | net/8021q/vlan.c | 3 | ||||
-rw-r--r-- | net/8021q/vlan_dev.c | 2 | ||||
-rw-r--r-- | net/8021q/vlanproc.c | 2 |
3 files changed, 3 insertions, 4 deletions
diff --git a/net/8021q/vlan.c b/net/8021q/vlan.c index b529110c9355..8141e2dc510b 100644 --- a/net/8021q/vlan.c +++ b/net/8021q/vlan.c | |||
@@ -570,8 +570,7 @@ static int vlan_ioctl_handler(struct net *net, void __user *arg) | |||
570 | goto out; | 570 | goto out; |
571 | 571 | ||
572 | err = -EINVAL; | 572 | err = -EINVAL; |
573 | if (args.cmd != ADD_VLAN_CMD && | 573 | if (args.cmd != ADD_VLAN_CMD && !is_vlan_dev(dev)) |
574 | !(dev->priv_flags & IFF_802_1Q_VLAN)) | ||
575 | goto out; | 574 | goto out; |
576 | } | 575 | } |
577 | 576 | ||
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) | |||
694 | dev->hard_start_xmit = vlan_dev_hard_start_xmit; | 694 | dev->hard_start_xmit = vlan_dev_hard_start_xmit; |
695 | } | 695 | } |
696 | 696 | ||
697 | if (real_dev->priv_flags & IFF_802_1Q_VLAN) | 697 | if (is_vlan_dev(real_dev)) |
698 | subclass = 1; | 698 | subclass = 1; |
699 | 699 | ||
700 | lockdep_set_class_and_subclass(&dev->_xmit_lock, | 700 | lockdep_set_class_and_subclass(&dev->_xmit_lock, |
diff --git a/net/8021q/vlanproc.c b/net/8021q/vlanproc.c index 08b54b593d56..6073a888b6f9 100644 --- a/net/8021q/vlanproc.c +++ b/net/8021q/vlanproc.c | |||
@@ -290,7 +290,7 @@ static int vlandev_seq_show(struct seq_file *seq, void *offset) | |||
290 | static const char fmt[] = "%30s %12lu\n"; | 290 | static const char fmt[] = "%30s %12lu\n"; |
291 | int i; | 291 | int i; |
292 | 292 | ||
293 | if (!(vlandev->priv_flags & IFF_802_1Q_VLAN)) | 293 | if (!is_vlan_dev(vlandev)) |
294 | return 0; | 294 | return 0; |
295 | 295 | ||
296 | seq_printf(seq, | 296 | seq_printf(seq, |