Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3794936pxb; Tue, 17 Nov 2020 03:53:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJwRwgoHIKqNHk+h5rbclkZe6gSpoM7cnXIPR+LtrA30j6fsH0NEXLqqte9R3feHFxkmBgTp X-Received: by 2002:aa7:cdd9:: with SMTP id h25mr20642408edw.294.1605614015299; Tue, 17 Nov 2020 03:53:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605614015; cv=none; d=google.com; s=arc-20160816; b=hN3SfKUBfN4i5dDj/sldCWp5dKPiru/1EWN3RiNT9MdRYloB3MI2Muz78VakF4eWZ8 81Dn5MlXSvk6WYoixbOZJezZwmIZUjnBsyqiWz3kTKKtdH/aIEHBNp9j/M/LHH8eW53Z 9AxjvLXGohWMWF5oB0WmSV/WBIjStnXkMZqizRcVRvkXR3tfSNO+ZWx5Il/5SCnjho79 KGXkGlz23/6LUmbucj31NS3kw+qu7YGG1R9PFsKr++s1gxdG6noAYzCpBFB4J57sYmt/ JW6Sl4JpnBdkl0ztBBtVDoFLVgUtNWTjHjuQldewGtqMnXxuxqflx5lVKvyC1RBgCojD Nc8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=Q9J4/GjBm07AuCxWfryW2OeEMZBlaijfc8o7o8S/orE=; b=lYOEsLXvl42fPXTPSMfm5XqQK+xytQP+R+39OfJGUZrbCKQ6BhwkP2HxCsEQW5nB5o QQEVxITtkANfSKksO/JMJIuSl7P+TkzDJAfAdNtEYsAquaghwWX8bHE8hiWPYGc/POt/ 5zJutrXdVmzi9VI6bxEoo3hvxGUvAi3RNduayxO5XdhNS3P/amHVqEnICyVTL+NRiHrV r+gXdkT5jjROcTox5cijdBtSS5IhtdHLOarZ+BOsVi5lHP6jNweomsIcApgjOjEmixZ1 N35jfeDyAc8ucx1lx4BjXy64D3HHa3rZurtmlJljb53l+GhyHPn1AZG3QJgRVw19JSTF rzoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=w8f74d8q; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b25si11934077edx.603.2020.11.17.03.53.12; Tue, 17 Nov 2020 03:53:35 -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; dkim=pass header.i=@linaro.org header.s=google header.b=w8f74d8q; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728010AbgKQLu1 (ORCPT + 99 others); Tue, 17 Nov 2020 06:50:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45434 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727885AbgKQLu0 (ORCPT ); Tue, 17 Nov 2020 06:50:26 -0500 Received: from mail-ua1-x943.google.com (mail-ua1-x943.google.com [IPv6:2607:f8b0:4864:20::943]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F48DC0613CF for ; Tue, 17 Nov 2020 03:50:25 -0800 (PST) Received: by mail-ua1-x943.google.com with SMTP id a10so6405052uan.12 for ; Tue, 17 Nov 2020 03:50:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Q9J4/GjBm07AuCxWfryW2OeEMZBlaijfc8o7o8S/orE=; b=w8f74d8quFo9AMbC+ANuv1sP3E7E1iKdtWXp299Hic/8NtM9t27nfA49y+y7TXslwl 4YS48sBJhA7ruEJe3zd5cihO2AtJL1cGyw7ap2sLXwyfZGCeT8Au2GWRLX2cjJ5p3VMP Am0AvN8UTKEEfpmkV525On73KAaEF4Ox3Aqd/zCgh84Po2KO1xbj4QBVEyTGIEMIm1iQ 9k+7y8h0CJ9Jpv4lCZcyNzeD1CI0QJG27BkiE5GEup+1FBi1qMUrBpgNcFqOI467E+d7 TKXv4lgfAqmM2nbhlpoOo+MYvGjfiKW62mLXUtqdFp1K2hJT43KPLNiL9FXz+gHowyuy jpXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Q9J4/GjBm07AuCxWfryW2OeEMZBlaijfc8o7o8S/orE=; b=lWxzLD9Fg4Gh8qyqXdnqstoaTZHyQopZL6iAtyEqzT+eX+SLupPCES+zVm17UQPv1C 9FMSL5Y5/Uz6D6AIzzg0AMarxZWUJG+/Neys0XkShTgRimvnSvxMlR64KiISJWa9PmUr CSe1DKiXz5y81mkcvvPWwBN/o9Z2kmD/GNthT4kcT/v7ZDa1yaHh2XvosWEFQ2rA8+DS vznFMEkFdGv+JNJ8+kZcYmgqw2SAd55hByjmdWzAqzV0LvQdnK8rsw38mLYfW9EwcIbj 8nAUgjcsahMT90oWDo3vnmxNZbEO2NakL2Q7PNlD5p5XWjeIzUiKSIHjSM9TQuCIpr0M 6mBA== X-Gm-Message-State: AOAM532SFf1xIZ2kh/NlxWsP5jmRKVsSgIhl6tz04a/beC20knwxLfQC HEBNkkrDAFoESr9fjenOcRL90WJgpEBZnnCTzIuNYg== X-Received: by 2002:ab0:7103:: with SMTP id x3mr10785157uan.100.1605613824404; Tue, 17 Nov 2020 03:50:24 -0800 (PST) MIME-Version: 1.0 References: <1604888706-63429-1-git-send-email-zou_wei@huawei.com> In-Reply-To: <1604888706-63429-1-git-send-email-zou_wei@huawei.com> From: Ulf Hansson Date: Tue, 17 Nov 2020 12:49:47 +0100 Message-ID: Subject: Re: [PATCH -next] mmc: owl-mmc: use true and false for bool variables To: Zou Wei Cc: =?UTF-8?Q?Andreas_F=C3=A4rber?= , Manivannan Sadhasivam , "linux-mmc@vger.kernel.org" , Linux ARM , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 9 Nov 2020 at 03:13, Zou Wei wrote: > > 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 Applied for next, thanks! Kind regards Uffe > --- > 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 >