← Commit list

fd2dc53ba

Denys Vlasenko
Denys Vlasenko
2009-10-04
FAILED Duration: 30s

Subject

remove useless (unsigned >= 0) comparison

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

networking/libiproute/utils.c+1 -1
@@ -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