summary refs log tree commit diff stats
path: root/include/qemu/host-utils.h
diff options
context:
space:
mode:
authorEric Blake <eblake@redhat.com>2016-05-31 12:33:31 -0600
committerMichael Tokarev <mjt@tls.msk.ru>2016-06-07 18:19:24 +0300
commite52eeb468d3dbd23c7c9f9746d3528f10a226817 (patch)
treeebe7c841c8f0936afe23891838f241d9f347088b /include/qemu/host-utils.h
parentaa5982e0fdc3d0ae3de6720e9bc650109d679772 (diff)
downloadfocaccia-qemu-e52eeb468d3dbd23c7c9f9746d3528f10a226817.tar.gz
focaccia-qemu-e52eeb468d3dbd23c7c9f9746d3528f10a226817.zip
host-utils: Prefer 'false' for bool type
Mixing '0' and 'bool' looks stupid.

Signed-off-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'include/qemu/host-utils.h')
-rw-r--r--include/qemu/host-utils.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/qemu/host-utils.h b/include/qemu/host-utils.h
index 1cdae0d0ed..3de7d4ec55 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));