qemu-trivial
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-trivial] [PULL 33/52] host-utils: Prefer 'false' for bool type


From: Michael Tokarev
Subject: [Qemu-trivial] [PULL 33/52] host-utils: Prefer 'false' for bool type
Date: Sun, 5 Jun 2016 10:43:10 +0300

From: Eric Blake <address@hidden>

Mixing '0' and 'bool' looks stupid.

Signed-off-by: Eric Blake <address@hidden>
Signed-off-by: Michael Tokarev <address@hidden>
---
 include/qemu/host-utils.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/qemu/host-utils.h b/include/qemu/host-utils.h
index 1cdae0d..3de7d4e 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));
-- 
2.1.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]