diff mbox

host-utils: Prefer 'false' for bool type

Message ID 1464719611-17268-1-git-send-email-eblake@redhat.com
State New
Headers show

Commit Message

Eric Blake May 31, 2016, 6:33 p.m. UTC
Mixing '0' and 'bool' looks stupid.

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

Comments

Michael Tokarev June 1, 2016, 8:04 a.m. UTC | #1
31.05.2016 21:33, Eric Blake wrote:
> Mixing '0' and 'bool' looks stupid.

Applied to -trivial, thanks!

/mjt
diff mbox

Patch

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));