Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp2898773pxb; Sun, 8 Nov 2020 18:15:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJwgwp8eGaTISBSf9kca0sfoiSlS+pdmLxHuiqSIlstB7bsNB2fOlqWlvMfxkFtv5Ui4Fccr X-Received: by 2002:a17:906:b7cc:: with SMTP id fy12mr13666853ejb.458.1604888109522; Sun, 08 Nov 2020 18:15:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604888109; cv=none; d=google.com; s=arc-20160816; b=Kfuf+9Ro8pyPkoTUWSFPYgYtFAcQKG8DXF3C5DspAXQ1CWo7+tc3vAE2oBy3mKoRKc CwMSa9OPdvTYfVEhvA7yrbg2McGAyfcr7M5PcW/APQGJ6/H8r1DCiYFuUca2AV+OwxH+ K3kYOjazhZKCKtqId/aGRdnnZkNoljtDCxFcPfzdDBtEJ+fRZNgLRiGKWsvDQe1WglkQ esBBouVdGvcr/RtrchML+jj0BU7hMB7D7lbfz09jHJWUDB/4gRkMS7bZZXszLU/5Yb/q 8JrjcIzPVZuJjvgH8hPVa3B0aWHf/yl4PleTCEj0U9P582nVm87zLnZ6A57MHPZ4wbYH Vp6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=eLSOSDMYEz5QgrMkKc7JbqJbcn9tu7pUzAWn9Tc+vko=; b=Rsk87IuDQzVcUrTSrzt6JpRfzfZk9nlNPidWwDaqLNnkUNWjlkywdXkjtuoYIM9gsK 8DXlPbhe5hMGsj3OHt4SPdrERpucdQFzoti4kYgepa9fgNL13xucx0ctrVgXgoSGHwtN dnRTvoij+li7AvTlZZcHVgeeDNayH12r6mhMfhqIbOxHZvZrE90Y/LkQFcF8Gn60tTD2 jXymGIZfnVN+qq2V5YWNKVmC0hzDIesTJL3vggAVqvGN/whGtK1k27PxIE9gBdJZGgbG C3THZRugpw0lqLTnmWH6Ndo4SHdY4WL1HA/xduxSPjtnQ6yoSxGpQ07ZHk62QiO7F/qk 6hzw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i15si6555469edl.249.2020.11.08.18.14.47; Sun, 08 Nov 2020 18:15:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728951AbgKICN0 (ORCPT + 99 others); Sun, 8 Nov 2020 21:13:26 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:7612 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727979AbgKICN0 (ORCPT ); Sun, 8 Nov 2020 21:13:26 -0500 Received: from DGGEMS409-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4CTvff0YkVzLwFK; Mon, 9 Nov 2020 10:13:14 +0800 (CST) Received: from linux-lmwb.huawei.com (10.175.103.112) by DGGEMS409-HUB.china.huawei.com (10.3.19.209) with Microsoft SMTP Server id 14.3.487.0; Mon, 9 Nov 2020 10:13:14 +0800 From: Zou Wei To: , , CC: , , , Zou Wei Subject: [PATCH -next] mmc: owl-mmc: use true and false for bool variables Date: Mon, 9 Nov 2020 10:25:06 +0800 Message-ID: <1604888706-63429-1-git-send-email-zou_wei@huawei.com> X-Mailer: git-send-email 2.6.2 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.103.112] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix coccicheck warnings: ./owl-mmc.c:524:2-18: WARNING: Assignment of 0/1 to bool variable ./owl-mmc.c:528:2-18: WARNING: Assignment of 0/1 to bool variable Reported-by: Hulk Robot Signed-off-by: Zou Wei --- 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 82d2bad..53b81582 100644 --- a/drivers/mmc/host/owl-mmc.c +++ b/drivers/mmc/host/owl-mmc.c @@ -521,11 +521,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.6.2