From: Mark Andrews Date: Fri, 13 May 2011 01:59:14 +0000 (+0000) Subject: remove redundant test, unsigned is always >= 0 X-Git-Tag: v4_2_2b1~19 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8632b4a8fee951e38b5488099d84e33c4e8c95da;p=thirdparty%2Fdhcp.git remove redundant test, unsigned is always >= 0 --- diff --git a/server/dhcp.c b/server/dhcp.c index 3ca61912b..7dcbab0c8 100644 --- a/server/dhcp.c +++ b/server/dhcp.c @@ -2465,8 +2465,7 @@ void ack_lease (packet, lease, offer, when, msg, ms_nulltp, hp) evaluate_option_cache(&d1, packet, lt, NULL, packet->options, state->options, <->scope, oc, MDL)) { - if (d1.len == 1 && - (d1.data[0] >= 0) && (d1.data[0] < 100)) + if (d1.len == 1 && (d1.data[0] < 100)) thresh = d1.data[0]; data_string_forget(&d1, MDL);