[PATCH] '< 0' comparison make sense only with signed variable.

From: "Alexey Dobriyan"
Date: Mon Oct 06 2003 - 17:37:26 EST


ax25_ctl.arg is unsigned long

diff -urN a/net/ax25/af_ax25.c b/net/ax25/af_ax25.c
--- a/net/ax25/af_ax25.c 2003-09-28 04:51:00.000000000 +0400
+++ b/net/ax25/af_ax25.c 2003-10-07 01:03:08.000000000 +0400
@@ -421,14 +421,10 @@
break;

case AX25_T3:
- if (ax25_ctl.arg < 0)
- return -EINVAL;
ax25->t3 = ax25_ctl.arg * HZ;
break;

case AX25_IDLE:
- if (ax25_ctl.arg < 0)
- return -EINVAL;
ax25->idle = ax25_ctl.arg * 60 * HZ;
break;


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/