From: Lennart Poettering Date: Thu, 21 Jun 2018 16:51:14 +0000 (+0200) Subject: sd-boot: coding style fix, don't rely on C's downgrade-to-bool feature for numerical... X-Git-Tag: v240~522^2~5 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=64e7e27cd4683b0d12c018bf20c51d6b1f7ed95b;p=thirdparty%2Fsystemd.git sd-boot: coding style fix, don't rely on C's downgrade-to-bool feature for numerical values --- diff --git a/src/boot/efi/boot.c b/src/boot/efi/boot.c index 582d34f9838..b1111062e56 100644 --- a/src/boot/efi/boot.c +++ b/src/boot/efi/boot.c @@ -890,7 +890,7 @@ static INTN str_verscmp(CHAR16 *s1, CHAR16 *s2) { INTN order; order = c_order(*s1) - c_order(*s2); - if (order) + if (order != 0) return order; s1++; s2++; @@ -914,7 +914,7 @@ static INTN str_verscmp(CHAR16 *s1, CHAR16 *s2) { if (is_digit(*s2)) return -1; - if (first) + if (first != 0) return first; }