From a9f9a68d21f8f06dd78b80208aee292d2266a85d Mon Sep 17 00:00:00 2001 From: Greg Hudson Date: Mon, 19 Mar 2018 12:23:19 -0400 Subject: [PATCH] Remove unneeded conditional in hex.c hex_digit() accepts bval as an unsigned parameter, so we don't need to test if bval >= 0. --- src/util/support/hex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.47.2