summaryrefslogtreecommitdiff
path: root/net/wanrouter
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2007-05-31 21:33:35 -0700
committerDavid S. Miller <davem@sunset.davemloft.net>2007-06-03 18:08:47 -0700
commit75202e76893c11ce7f8bcc9a07f994d71e3d5113 (patch)
tree71d9e0aaabb6b3904c477f8ee253484245e38d49 /net/wanrouter
parent60468d5b5b6931b4d4d704e26b5f17a6e476e6f8 (diff)
downloadlinux-3.10-75202e76893c11ce7f8bcc9a07f994d71e3d5113.tar.gz
linux-3.10-75202e76893c11ce7f8bcc9a07f994d71e3d5113.tar.bz2
linux-3.10-75202e76893c11ce7f8bcc9a07f994d71e3d5113.zip
[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 7a19e0ede28..849cc06bd91 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);