[git commit master] remove useless (unsigned >= 0) comparison

Denys Vlasenko vda.linux at googlemail.com
Sat Oct 3 23:13:35 UTC 2009


commit: http://git.busybox.net/busybox/commit/?id=fd2dc53ba49ed2bdb077a45f4793d397fa92d2da
branch: http://git.busybox.net/busybox/commit/?id=refs/heads/master

Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 networking/libiproute/utils.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/networking/libiproute/utils.c b/networking/libiproute/utils.c
index 5f09717..85034c0 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
-- 
1.6.3.3



More information about the busybox-cvs mailing list