remove useless (unsigned >= 0) comparison
authorDenys Vlasenko <vda.linux@googlemail.com>
Sat, 3 Oct 2009 23:13:35 +0000 (01:13 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sat, 3 Oct 2009 23:13:35 +0000 (01:13 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
networking/libiproute/utils.c

index 5f09717515cf62eb86dbd31cdae7d08dfd0fec3b..85034c0f66298e39e8eb4127a09511ebf671e2cd 100644 (file)
@@ -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