]> git.neil.brown.name Git - history.git/commitdiff
net/8021q/vlan.c: Unsigned value may never be < 0.
authorDavid S. Miller <davem@nuts.ninka.net>
Mon, 7 Oct 2002 00:55:27 +0000 (17:55 -0700)
committerDavid S. Miller <davem@nuts.ninka.net>
Mon, 7 Oct 2002 00:55:27 +0000 (17:55 -0700)
net/8021q/vlan.c

index 6ac4285f3fe59aa9d21a02abd2f8978221fff5b0..6bc8857d5393b7b48085d28a46b79569c2534211 100644 (file)
@@ -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);