diff options
author | Bill Nottingham <notting@redhat.com> | 2007-06-01 00:33:35 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-06-03 21:08:47 -0400 |
commit | 75202e76893c11ce7f8bcc9a07f994d71e3d5113 (patch) | |
tree | 71d9e0aaabb6b3904c477f8ee253484245e38d49 /net/8021q/vlan.c | |
parent | 60468d5b5b6931b4d4d704e26b5f17a6e476e6f8 (diff) |
[NET]: Fix comparisons of unsigned < 0.
Recent gcc versions emit warnings when unsigned variables are
compared < 0 or >= 0.
Signed-off-by: Bill Nottingham <notting@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/8021q/vlan.c')
-rw-r--r-- | net/8021q/vlan.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/8021q/vlan.c b/net/8021q/vlan.c index ceef57c9ab32..de78c9dd713b 100644 --- a/net/8021q/vlan.c +++ b/net/8021q/vlan.c | |||
@@ -736,8 +736,7 @@ static int vlan_ioctl_handler(void __user *arg) | |||
736 | case SET_VLAN_NAME_TYPE_CMD: | 736 | case SET_VLAN_NAME_TYPE_CMD: |
737 | if (!capable(CAP_NET_ADMIN)) | 737 | if (!capable(CAP_NET_ADMIN)) |
738 | return -EPERM; | 738 | return -EPERM; |
739 | if ((args.u.name_type >= 0) && | 739 | if (args.u.name_type < VLAN_NAME_TYPE_HIGHEST) { |
740 | (args.u.name_type < VLAN_NAME_TYPE_HIGHEST)) { | ||
741 | vlan_name_type = args.u.name_type; | 740 | vlan_name_type = args.u.name_type; |
742 | err = 0; | 741 | err = 0; |
743 | } else { | 742 | } else { |