]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
remove redundant test, unsigned is always >= 0
authorMark Andrews <marka@isc.org>
Fri, 13 May 2011 01:57:38 +0000 (01:57 +0000)
committerMark Andrews <marka@isc.org>
Fri, 13 May 2011 01:57:38 +0000 (01:57 +0000)
server/dhcp.c

index 50845bcdc3a8aac6f9a02100707d15925c40ed3b..3df279f0dc6ae106f521d87c6f97ab02327205b7 100644 (file)
@@ -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,
                                          &lt->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);