From patchwork Tue May 31 18:33:31 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Blake X-Patchwork-Id: 9145411 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 83D3760761 for ; Tue, 31 May 2016 18:34:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7947D281B4 for ; Tue, 31 May 2016 18:34:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6D8B2281FF; Tue, 31 May 2016 18:34:00 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 14A20281B4 for ; Tue, 31 May 2016 18:33:59 +0000 (UTC) Received: from localhost ([::1]:37812 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b7oUH-0000eE-IN for patchwork-qemu-devel@patchwork.kernel.org; Tue, 31 May 2016 14:33:57 -0400 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 Received: from resomta-po-15v.sys.comcast.net ([96.114.154.239]) by comcast with SMTP id 7oTbb59LDd8267oTxbNI7N; Tue, 31 May 2016 18:33:37 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20140121; t=1464719617; bh=11rENbilWNWTOAQqGau6ttp388q13d4lbVXCg/W/oNs=; h=Received:Received:From:To:Subject:Date:Message-Id; b=Aw/Pyw9IoIbqqGz/ftVjQD9DMfrAmSVAUH9KgjLZJ214ClcGXvtfVdpSA+Cydbm+N d5uJWvPwEh6eqYs7qzUZpLzQDeXEfr8FExmslfvwzyzqljWpQBBPkmXY7k6IaxxKPd afI9s/9bjzcCr/Jp7DmtMBb/TSIRfkCE905k62IcitflCrJH5VJlwtcNNaPtEFPu6V YD59KH5ADDyLaBrOu97xONPaNDGNGgRQYUGIOkKC0j2zIqIDRpvF1fyGpbekLz5iPT RGQHcmKozQQHlTaV/2N8sV8sJBwlnRImPA0pX7wI0+EUBE1xKNEUj6rtJum+JA6ysG lQEOr+nq+dISg== Received: from red.redhat.com ([24.10.254.122]) by resomta-po-15v.sys.comcast.net with comcast id 16ZZ1t00E2fD5rL016ZccN; Tue, 31 May 2016 18:33:37 +0000 From: Eric Blake To: qemu-devel@nongnu.org Date: Tue, 31 May 2016 12:33:31 -0600 Message-Id: <1464719611-17268-1-git-send-email-eblake@redhat.com> X-Mailer: git-send-email 2.5.5 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2001:558:fe16:19:96:114:154:168 Subject: [Qemu-devel] [PATCH] host-utils: Prefer 'false' for bool type X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: qemu-trivial@nongnu.org Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP 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));