mirror of
https://gitlab.isc.org/isc-projects/dhcp
synced 2025-09-02 15:25:48 +00:00
remove redundant test, unsigned is always >= 0
This commit is contained in:
@@ -2465,8 +2465,7 @@ void ack_lease (packet, lease, offer, when, msg, ms_nulltp, hp)
|
|||||||
evaluate_option_cache(&d1, packet, lt, NULL,
|
evaluate_option_cache(&d1, packet, lt, NULL,
|
||||||
packet->options, state->options,
|
packet->options, state->options,
|
||||||
<->scope, oc, MDL)) {
|
<->scope, oc, MDL)) {
|
||||||
if (d1.len == 1 &&
|
if (d1.len == 1 && (d1.data[0] < 100))
|
||||||
(d1.data[0] >= 0) && (d1.data[0] < 100))
|
|
||||||
thresh = d1.data[0];
|
thresh = d1.data[0];
|
||||||
|
|
||||||
data_string_forget(&d1, MDL);
|
data_string_forget(&d1, MDL);
|
||||||
|
Reference in New Issue
Block a user