projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d63f04
)
remove useless (unsigned >= 0) comparison
author
Denys Vlasenko
<vda.linux@googlemail.com>
Sat, 3 Oct 2009 23:13:35 +0000
(
01:13
+0200)
committer
Denys 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
patch
|
blob
|
history
diff --git
a/networking/libiproute/utils.c
b/networking/libiproute/utils.c
index 5f09717515cf62eb86dbd31cdae7d08dfd0fec3b..85034c0f66298e39e8eb4127a09511ebf671e2cd 100644
(file)
--- 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