Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp7301906ybl; Mon, 23 Dec 2019 23:27:55 -0800 (PST) X-Google-Smtp-Source: APXvYqySnVODt82oFc8KAHNNCNzVADCVnFdMuYz+yLetwUN2a1alSv1MpooRsbMOR5OokmEpm7Qr X-Received: by 2002:a9d:7cd0:: with SMTP id r16mr38521012otn.50.1577172475326; Mon, 23 Dec 2019 23:27:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577172475; cv=none; d=google.com; s=arc-20160816; b=DLuwl9aVISjYAMJ6ZLzt631ZD6tZ+psTz1idtMyA4NQG4cLHTHZcQm51RvjJKlbXuW WqaHw5gW8sH+2O3eg9/hYULWghjqEF0tvCJXRPcsGnSejdSzUCSt6dlIP9jae6uRx041 0ooKk5kEZYoN40ra+Q+71p3EPZXFvGdL/d1Eg5zYYvM2qLCL246WTPBle3Hlk3Y8bEok 9UJP/gjPGKHHdgF6wPUDTq1TYG+qp47vWojc7aMs7P/r9hngc8Ph7pKy//XZR4iL4N59 QLZN7IpjcmmWuP3pc2lFItFGfrDlFdM/Ecjjmjr0MQz47aKUQY3UL6nshlpNyi9p/0t4 7DCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=XPsJNATdkyGQu3EY29sn56CuZwXze/nnJxEHAsvOk18=; b=mP7L750Xhv+FovsruywXlXqViL2JTujab3h2mJlX3btUdWryVE9sr9rz21/E9Qx0bv XLuXjnooLrM5vCLEIR/23pTErtqBlRGope4EA/EIT1VMrmNMUl3QU1MR3QU4uTj4gUqp ia8rHa49/hO5HB9WZK8jPAiBKKYN17FYInhNfvYe3ZZheYJXhegyxh8R0Vu10tI94sJJ 6DpurPgR3F6yZWry9xEklzGgcm/FUlQUuTp4FwBL5Vl3ywZ2xJ5uCY4Qn35AdLMq7Q3d 5eQGHM4erES7bx2I8OTJILeuiun3y6J1Mx7XKfrONo24FvHxHwvPnsaqcPSQGcoi3FsV 2GRA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y8si10539461oih.141.2019.12.23.23.27.43; Mon, 23 Dec 2019 23:27:55 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726124AbfLXHZG (ORCPT + 99 others); Tue, 24 Dec 2019 02:25:06 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:7740 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726070AbfLXHZF (ORCPT ); Tue, 24 Dec 2019 02:25:05 -0500 Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id A3FCAAFB2A10D1299249; Tue, 24 Dec 2019 15:25:03 +0800 (CST) Received: from huawei.com (10.90.53.225) by DGGEMS410-HUB.china.huawei.com (10.3.19.210) with Microsoft SMTP Server id 14.3.439.0; Tue, 24 Dec 2019 15:24:56 +0800 From: zhengbin To: , , CC: Subject: [PATCH 4/6] mmc: omap_hsmmc: use true,false for bool variable Date: Tue, 24 Dec 2019 15:32:13 +0800 Message-ID: <1577172735-18869-5-git-send-email-zhengbin13@huawei.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1577172735-18869-1-git-send-email-zhengbin13@huawei.com> References: <1577172735-18869-1-git-send-email-zhengbin13@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.90.53.225] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fixes coccicheck warning: drivers/mmc/host/omap_hsmmc.c:294:3-22: WARNING: Assignment of 0/1 to bool variable drivers/mmc/host/omap_hsmmc.c:303:3-22: WARNING: Assignment of 0/1 to bool variable drivers/mmc/host/omap_hsmmc.c:1866:1-20: WARNING: Assignment of 0/1 to bool variable Reported-by: Hulk Robot Signed-off-by: zhengbin --- drivers/mmc/host/omap_hsmmc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host/omap_hsmmc.c index a379c45..ce2a929 100644 --- a/drivers/mmc/host/omap_hsmmc.c +++ b/drivers/mmc/host/omap_hsmmc.c @@ -291,7 +291,7 @@ static int omap_hsmmc_set_pbias(struct omap_hsmmc_host *host, bool power_on) dev_err(host->dev, "pbias reg enable fail\n"); return ret; } - host->pbias_enabled = 1; + host->pbias_enabled = true; } } else { if (host->pbias_enabled == 1) { @@ -300,7 +300,7 @@ static int omap_hsmmc_set_pbias(struct omap_hsmmc_host *host, bool power_on) dev_err(host->dev, "pbias reg disable fail\n"); return ret; } - host->pbias_enabled = 0; + host->pbias_enabled = false; } } @@ -1863,7 +1863,7 @@ static int omap_hsmmc_probe(struct platform_device *pdev) host->base = base + pdata->reg_offset; host->power_mode = MMC_POWER_OFF; host->next_data.cookie = 1; - host->pbias_enabled = 0; + host->pbias_enabled = false; host->vqmmc_enabled = 0; platform_set_drvdata(pdev, host); -- 2.7.4