Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp7301894ybl; Mon, 23 Dec 2019 23:27:54 -0800 (PST) X-Google-Smtp-Source: APXvYqyBanT4vZicDXlC1qtW9EEUfItC9OsPw9yzpIev3G4ZSeuAiSwVQHrqlDqyR2jfn525un/s X-Received: by 2002:a05:6830:1353:: with SMTP id r19mr37672940otq.288.1577172473994; Mon, 23 Dec 2019 23:27:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577172473; cv=none; d=google.com; s=arc-20160816; b=xvmMIk2gZbPlwgZUT9bbPY9mJwUHCvrKvOYaTuGqsTz9ZEDyay8a/7kePyDi0hgzf0 piwGGlLkJ/2iG4oKOyNY8Efg/Ww3ZssjmMPZyyJjF4APgr+uX9PrBfPcowc0QTHH0JV4 Z3Xu+ajCFaqvMLfcVQGFPF/NLaIPUFODAxdncQZxUQM200iW1mye5Xrle4IE/GmOEEcE BkPVu2Y5+YljiI5+5r+kwVpsXSgUD/Q0HYw9tfre1hZa+yZb/6dSMiuYuRXlo3MMOlLN oX0kEnPJ1FIOK20ewnCG3wXxNa51vpnJTGWXKGAUxF7Quuu+9+L37le1YjO2GTHcNHQP rlSQ== 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=jPnQ/t4Ca38fZgzS02ZW2XEpQq1RYH4RMxGCF2wa20w=; b=gvbKNdIa1cjDrAH9gegKPQ9SQ1vMDy20B683PF2ucKdS47nvoLv4aikQSmeA7jxQ+E S3mQvd7m9Fb1VBClHRGSaq48sf9mNWB/A+tHRwPh4b/UaRPtYZoyY0KL6jwlxKMc3j3I huZi/5HZ+uC1Y6ECQouXNrQNKH6cSyaJ64d6TV2D5EXdrVjyjhpFgiu0DpTTxTfFGeJh YrUko3Yda3ABQP0c1TodxBfWm2ZAc9cVAb3hDn55019SObZ1RfLr004RfuLYQ4kQiTU8 ixw3kBCNJQloxRM9II2u7nI7IN18lq1qj70mAyiKdFRmst4Fq/aiUp2mRh5QGB6nBrhD 3Tww== 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 w68si10133382oia.223.2019.12.23.23.27.43; Mon, 23 Dec 2019 23:27:53 -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 S1726375AbfLXHZZ (ORCPT + 99 others); Tue, 24 Dec 2019 02:25:25 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:7738 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725993AbfLXHZG (ORCPT ); Tue, 24 Dec 2019 02:25:06 -0500 Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 9C54F62673D311592F0D; 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 6/6] mmc: owl: use true,false for bool variable Date: Tue, 24 Dec 2019 15:32:15 +0800 Message-ID: <1577172735-18869-7-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/owl-mmc.c:519:2-18: WARNING: Assignment of 0/1 to bool variable drivers/mmc/host/owl-mmc.c:523:2-18: WARNING: Assignment of 0/1 to bool variable Reported-by: Hulk Robot Signed-off-by: zhengbin --- drivers/mmc/host/owl-mmc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/host/owl-mmc.c b/drivers/mmc/host/owl-mmc.c index 771e3d0..d3b1653 100644 --- a/drivers/mmc/host/owl-mmc.c +++ b/drivers/mmc/host/owl-mmc.c @@ -516,11 +516,11 @@ static void owl_mmc_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) /* Enable DDR mode if requested */ if (ios->timing == MMC_TIMING_UHS_DDR50) { - owl_host->ddr_50 = 1; + owl_host->ddr_50 = true; owl_mmc_update_reg(owl_host->base + OWL_REG_SD_EN, OWL_SD_EN_DDREN, true); } else { - owl_host->ddr_50 = 0; + owl_host->ddr_50 = false; } } -- 2.7.4