802.15.4: Replace '> 0' with '!= 0' in some unsigned expression tests

Unsigned is always >= 0, so '> 0' and '!= 0' are identical.

This makes the tests a little clearer.
This commit is contained in:
Francois-Xavier Le Bail 2024-02-28 16:02:56 +01:00
parent cf78babcbf
commit f9ea99305f

View File

@ -1299,7 +1299,7 @@ ieee802_15_4_print_mlme_ie_list(netdissect_options *ndo,
ND_PRINT("] ");
p += sub_ie_len;
ie_len -= 2 + sub_ie_len;
} while (ie_len > 0);
} while (ie_len != 0);
}
/*
@ -1502,7 +1502,7 @@ ieee802_15_4_print_payload_ie_list(netdissect_options *ndo,
if (group_id == 0xf) {
break;
}
} while (caplen > 0);
} while (caplen != 0);
return len;
}