Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp271844pxb; Wed, 13 Jan 2021 03:18:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJwN4rYPYJ0ugoPxcJuH/CxzKli25LR14kIl5uITT+T74HB0zty4yseUODYCCDaeJE9s3xN7 X-Received: by 2002:a50:b765:: with SMTP id g92mr1348365ede.317.1610536734747; Wed, 13 Jan 2021 03:18:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610536734; cv=none; d=google.com; s=arc-20160816; b=QTZBGiyq7GNJxw/URE0aosdOMHcqemBZm/d8D0F5li9+I0fqn1Onn3Xls1XOxL106b nRH8QDT79ZfWIFxcaGkqR80MEWb4Cb10ZDjJr1E1B5xgBkZQl7L3+e1r70AOOEsoni/t v3ogBGxxDufac8R7wJMT/Dx/8rQpmPibp/2W4m7a1M4BP6P7Dhqu3qg4XYvN1Yz1+212 VxSVfZq5o5cWL+fqQKGncicHI0ECl7f6W5199a5oVzWDkUcgJ39g7Q8WYnJg7tYEqILZ uSp38YJHiB97i9M1qdMMy/ZuVJwyc1NPmOmUnfJWTy445aQw0+aGjwvREau9hxUURDBq Ojbg== 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=5F3Y1+dvzqZPxeJEhWq1oJzPV10LGp3WuH2PQnvIrno=; b=sNOUQlCSp+SEUynIlWWWxBVTVgsSfGbXHgoO7XChDKJPy9qHt5Ri31g6/JrruG643E 5g8ft6e/f87ukmfE04xbzEr1qNCcWbRT9ieYfJiqVEkh/tgU/WzC1WWH2vE84Nx1xxdM TpR1FE2hB5FASOUnSOoAvdpwLABR+zrvjckPN1uSY5I+e4l/G5aMuWGfB1q4W/jqeyyW U1z9xHpsex6hRlZQcFqjzCF4dd/hQbjSgwRIly4pUybHyPbTirhP+z5SXDAgsZu5T6sL MsqFVsDyyGUlJYbzzmg+t2gX7n//JJYC6ohiW5nvdLL85zjknrvesCk3yY7fln2ukZSB R94w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Bs01E+yS; 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 g20si870574edm.288.2021.01.13.03.18.31; Wed, 13 Jan 2021 03:18:54 -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=Bs01E+yS; 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 S1728143AbhAMLPu (ORCPT + 99 others); Wed, 13 Jan 2021 06:15:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51770 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727174AbhAMLPu (ORCPT ); Wed, 13 Jan 2021 06:15:50 -0500 Received: from mail-vs1-xe2b.google.com (mail-vs1-xe2b.google.com [IPv6:2607:f8b0:4864:20::e2b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CBA8FC061795 for ; Wed, 13 Jan 2021 03:15:09 -0800 (PST) Received: by mail-vs1-xe2b.google.com with SMTP id j140so897329vsd.4 for ; Wed, 13 Jan 2021 03:15:09 -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=5F3Y1+dvzqZPxeJEhWq1oJzPV10LGp3WuH2PQnvIrno=; b=Bs01E+yS0to9O9W6rRtGlBZGNxNfce2hx/qfzQjInfwMBqnjKV7ikGKq2HirAXZm3o kuorTChMOhCfYcF8vb/UhcdtDNbF8bx9FEutmtT8sdqjr97uwj7bJ8f7oKb8rNoFUhtC A+nujCQ/rC7JenrVVGj6YTEpgADCf1ouOHlcbdOw729VwFEjNSja5b0wVCLb1zQQnIWH +CpwzE7WRWgnKoLo2hBbQq94rxnrUkmpxj7G6aED/rxX55/aZ/9brjm0W2lMDuEXlOfV q2g6o5lmjgcdImsSUx4FBC36NSvsBYAmygP54VAAarv4teMw+mOpyRVKvc/kwxpLFm6D OQQQ== 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=5F3Y1+dvzqZPxeJEhWq1oJzPV10LGp3WuH2PQnvIrno=; b=Bss+BFQhmFV5cCq1IpdKW+2zmE/cYtyh/5MsktLwO4smONZ31bs1cQxaBwogOAU6mc HiIDIeKuDAMGlIzXOjqNTwpzHIvqU+h5d7UQOekCt0zA2jAS/2WAntiUfLo3Zz49MuGD D314aYv7qJTpNt3HCgTkV6NxWztQmdUwRhj+DB0JRSba668o7/H22UPp8p2Xb8oDIroG d9tfs7xHkdbRFqPllSoSOmywYtiPDOg98v3tOfTgTWUevBNQJIL7rlE/Fe+HW8nPPwGB 26tCqqf9D0YjoLCVNygjJQ2SRwoWINXmulGco88RPfifWqpY/MMPJdUNpZMj55muItnj WfHw== X-Gm-Message-State: AOAM533LTtLxdfqPGt8sx1AtLNEzuIgB90pc1hzu4Pyh6UGO4DPumV+F 7QRB0nRO89JxhQ921zfiE2b6vv7mCoKiWCQOFgzGGQ== X-Received: by 2002:a67:fe85:: with SMTP id b5mr1167502vsr.19.1610536508532; Wed, 13 Jan 2021 03:15:08 -0800 (PST) MIME-Version: 1.0 References: <1610358374-81002-1-git-send-email-abaci-bugfix@linux.alibaba.com> In-Reply-To: <1610358374-81002-1-git-send-email-abaci-bugfix@linux.alibaba.com> From: Ulf Hansson Date: Wed, 13 Jan 2021 12:14:32 +0100 Message-ID: Subject: Re: [PATCH] host: omap_hsmmc: style: Simplify bool comparison To: YANG LI Cc: Liam Girdwood , Mark Brown , "linux-mmc@vger.kernel.org" , linux-omap , 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, 11 Jan 2021 at 10:46, YANG LI wrote: > > Fix the following coccicheck warning: > ./drivers/mmc/host/omap_hsmmc.c:297:6-25: WARNING: Comparison of 0/1 to > bool variable If you really want this change, I prefer if you can clean up all use of "pbias_enabled" - and at the same time, do the same clean up for "vqmmc_enabled". Kind regards Uffe > > Signed-off-by: YANG LI > Reported-by: Abaci Robot > --- > drivers/mmc/host/omap_hsmmc.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host/omap_hsmmc.c > index aa9cc49..91a0760 100644 > --- a/drivers/mmc/host/omap_hsmmc.c > +++ b/drivers/mmc/host/omap_hsmmc.c > @@ -294,7 +294,7 @@ static int omap_hsmmc_set_pbias(struct omap_hsmmc_host *host, bool power_on) > host->pbias_enabled = 1; > } > } else { > - if (host->pbias_enabled == 1) { > + if (host->pbias_enabled) { > ret = regulator_disable(host->pbias); > if (ret) { > dev_err(host->dev, "pbias reg disable fail\n"); > -- > 1.8.3.1 >