From: Eric Blake Date: Tue, 31 May 2016 18:33:31 +0000 (-0600) Subject: host-utils: Prefer 'false' for bool type X-Git-Tag: v2.7.0-rc0~142^2~18 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e52eeb468d3dbd23c7c9f9746d3528f10a226817;p=thirdparty%2Fqemu.git host-utils: Prefer 'false' for bool type Mixing '0' and 'bool' looks stupid. Signed-off-by: Eric Blake Signed-off-by: Michael Tokarev --- diff --git a/include/qemu/host-utils.h b/include/qemu/host-utils.h index 1cdae0d0ed4..3de7d4ec550 100644 --- a/include/qemu/host-utils.h +++ b/include/qemu/host-utils.h @@ -486,7 +486,7 @@ static inline uint64_t revbit64(uint64_t x) static inline bool is_power_of_2(uint64_t value) { if (!value) { - return 0; + return false; } return !(value & (value - 1));