aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-10-04 01:13:35 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2009-10-04 01:13:35 +0200
commitfd2dc53ba49ed2bdb077a45f4793d397fa92d2da (patch)
tree2d9653606439b6e5936ae4d478fd22befd47c4eb
parent1d63f046d042bff32501ed0ef503dd77b9ca9b0a (diff)
downloadbusybox-w32-fd2dc53ba49ed2bdb077a45f4793d397fa92d2da.tar.gz
busybox-w32-fd2dc53ba49ed2bdb077a45f4793d397fa92d2da.tar.bz2
busybox-w32-fd2dc53ba49ed2bdb077a45f4793d397fa92d2da.zip
remove useless (unsigned >= 0) comparison
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--networking/libiproute/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/networking/libiproute/utils.c b/networking/libiproute/utils.c
index 5f0971751..85034c0f6 100644
--- a/networking/libiproute/utils.c
+++ b/networking/libiproute/utils.c
@@ -136,7 +136,7 @@ static int get_prefix_1(inet_prefix *dst, char *arg, int family)
136 if (!(host & (host + 1))) { 136 if (!(host & (host + 1))) {
137 for (plen = 0; mask; mask <<= 1) 137 for (plen = 0; mask; mask <<= 1)
138 ++plen; 138 ++plen;
139 if (plen >= 0 && plen <= dst->bitlen) { 139 if (plen <= dst->bitlen) {
140 dst->bitlen = plen; 140 dst->bitlen = plen;
141 /* dst->flags |= PREFIXLEN_SPECIFIED; */ 141 /* dst->flags |= PREFIXLEN_SPECIFIED; */
142 } else 142 } else