summaryrefslogtreecommitdiff
path: root/net/wanrouter
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2007-06-01 08:33:35 +0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-06-04 05:08:47 +0400
commit75202e76893c11ce7f8bcc9a07f994d71e3d5113 (patch)
tree71d9e0aaabb6b3904c477f8ee253484245e38d49 /net/wanrouter
parent60468d5b5b6931b4d4d704e26b5f17a6e476e6f8 (diff)
downloadlinux-75202e76893c11ce7f8bcc9a07f994d71e3d5113.tar.xz
[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/wanrouter')
-rw-r--r--net/wanrouter/wanmain.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/wanrouter/wanmain.c b/net/wanrouter/wanmain.c
index 7a19e0ede289..849cc06bd914 100644
--- a/net/wanrouter/wanmain.c
+++ b/net/wanrouter/wanmain.c
@@ -454,7 +454,7 @@ static int wanrouter_device_setup(struct wan_device *wandev,
}
if (conf->data_size && conf->data) {
- if (conf->data_size > 128000 || conf->data_size < 0) {
+ if (conf->data_size > 128000) {
printk(KERN_INFO
"%s: ERROR, Invalid firmware data size %i !\n",
wandev->name, conf->data_size);