From fd2dc53ba49ed2bdb077a45f4793d397fa92d2da Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Sun, 4 Oct 2009 01:13:35 +0200 Subject: remove useless (unsigned >= 0) comparison Signed-off-by: Denys Vlasenko --- networking/libiproute/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'networking') 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) if (!(host & (host + 1))) { for (plen = 0; mask; mask <<= 1) ++plen; - if (plen >= 0 && plen <= dst->bitlen) { + if (plen <= dst->bitlen) { dst->bitlen = plen; /* dst->flags |= PREFIXLEN_SPECIFIED; */ } else -- cgit v1.2.3