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>
This commit is contained in:
Joonwoo Park
2008-07-08 03:22:16 -07:00
committed by David S. Miller
parent acc81e1465
commit 26a25239d7
3 changed files with 3 additions and 4 deletions

View File

@@ -570,8 +570,7 @@ static int vlan_ioctl_handler(struct net *net, void __user *arg)
goto out;
err = -EINVAL;
if (args.cmd != ADD_VLAN_CMD &&
!(dev->priv_flags & IFF_802_1Q_VLAN))
if (args.cmd != ADD_VLAN_CMD && !is_vlan_dev(dev))
goto out;
}