From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42852) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b7oU3-0000ds-3B for qemu-devel@nongnu.org; Tue, 31 May 2016 14:33:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b7oTz-0008Sz-Le for qemu-devel@nongnu.org; Tue, 31 May 2016 14:33:42 -0400 Received: from resqmta-po-09v.sys.comcast.net ([2001:558:fe16:19:96:114:154:168]:54835) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b7oTz-0008Ss-Dz for qemu-devel@nongnu.org; Tue, 31 May 2016 14:33:39 -0400 From: Eric Blake Date: Tue, 31 May 2016 12:33:31 -0600 Message-Id: <1464719611-17268-1-git-send-email-eblake@redhat.com> Subject: [Qemu-devel] [PATCH] host-utils: Prefer 'false' for bool type List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: qemu-trivial@nongnu.org Mixing '0' and 'bool' looks stupid. Signed-off-by: Eric Blake --- 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.5.5