Commit c9d472ac authored by David S. Miller's avatar David S. Miller

net/8021q/vlan.c: Unsigned value may never be < 0.

parent 1bcb275d
......@@ -207,7 +207,7 @@ static int unregister_vlan_dev(struct net_device *real_dev,
#endif
/* sanity check */
if ((vlan_id >= VLAN_VID_MASK) || (vlan_id < 0))
if (vlan_id >= VLAN_VID_MASK)
return -EINVAL;
spin_lock_bh(&vlan_group_lock);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment