From: Greg Hudson Date: Mon, 19 Mar 2018 16:23:19 +0000 (-0400) Subject: Remove unneeded conditional in hex.c X-Git-Tag: krb5-1.17-beta1~158 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a9f9a68d21f8f06dd78b80208aee292d2266a85d;p=thirdparty%2Fkrb5.git Remove unneeded conditional in hex.c hex_digit() accepts bval as an unsigned parameter, so we don't need to test if bval >= 0. --- diff --git a/src/util/support/hex.c b/src/util/support/hex.c index 4407ff9ff5..cbd30d734f 100644 --- a/src/util/support/hex.c +++ b/src/util/support/hex.c @@ -37,7 +37,7 @@ static inline char hex_digit(uint8_t bval, int uppercase) { - assert(bval >= 0 && bval <= 0xF); + assert(bval <= 0xF); if (bval < 10) return '0' + bval; else if (uppercase)