From: Mark Andrews Date: Fri, 13 May 2011 01:57:38 +0000 (+0000) Subject: remove redundant test, unsigned is always >= 0 X-Git-Tag: v4_3_0a1~180 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5c09391c078ed6da52492aa523eaa60af1f46d8b;p=thirdparty%2Fdhcp.git remove redundant test, unsigned is always >= 0 --- diff --git a/server/dhcp.c b/server/dhcp.c index 50845bcdc..3df279f0d 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);