From patchwork Mon May 10 11:49:44 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Leizhen \(ThunderTown\)" X-Patchwork-Id: 433096 Delivered-To: patch@linaro.org Received: by 2002:a02:c901:0:0:0:0:0 with SMTP id t1csp2771382jao; Mon, 10 May 2021 05:02:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxepBCY2rPOg+pc3YjY/OXiAkLr+lMg4Koqx+gpDzFKyHy6QnNAMbLmbiI/qJE6JsxCyecF X-Received: by 2002:a2e:86d8:: with SMTP id n24mr20056139ljj.265.1620648149314; Mon, 10 May 2021 05:02:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620648149; cv=none; d=google.com; s=arc-20160816; b=C75xZgpNCCjttrArfqUP0QrrFFuQPtrLa6hDd/NDZ3F8i8Guzr4RpT7nVUy0GWbWji tX6f63tWr8BRDLF3KMrOvh1Lp7s7nSWmtwak0HENqhKL1NjYsrNs7cZZI4SwUq3E8BPD VDLXaf0zVvDVXjLI9oLine6LMWWvgv0SEuknWALDtY0IH903+ggX4a36ruUqHAR1gAFI 9+qlxerMzRuJdpajsn27/B9cRmH3LUMb2nhdhymNzL9JX3bYpKkY9rHYl+cQmz1pCss6 ljO/0IqImJcFHpKgLCWHcH+HUEStVb1iDBON011o4tDTNKFQHr0F0/TdRzxhEefjdrE4 KIfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence :mime-version:message-id:date:subject:cc:to:from:dkim-signature :dkim-signature; bh=+/UJY8Q/EMGKYtG5w40tJxRA40F4Ak0kmZnuWUQI01U=; b=rZfF9BBo51RMlsQIj2Xbw5LxgGjYfmvC2K0u5BxEAgQhhHo1NI7NMz+CAbJWnW9kp6 vIqnfMriCeg30toAPTRHf/sFuvhlWqvWq3jH3wolyI00uQP3XmpbLXuweqPTGX9JJyz/ YfejfGTsBijjIRPa/f8Qxb21+2jt8Ffgg7GDtJe8HJKqAXdapAt4JkeQ1byye5JV2go3 e1puRQoCEABwPJVh/sCBAUAgpL5bC+xlolb4Rif/zWGrNAd3TfrSYm6R8x+czbrQPNKC AIdCm/zSAYwwXT0UXKyZhgLIFUhaAJ0lKHHmZZPSerOVM9LAzlwbbgGYVl2Vy8W39R7b hCYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=desiato.20200630 header.b=T5Gp9ghn; dkim=neutral (body hash did not verify) header.i=@infradead.org header.s=bombadil.20210309 header.b=Lp40rbJL; spf=pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 2001:8b0:10b:1:d65d:64ff:fe57:4e05 as permitted sender) smtp.mailfrom="linux-mtd-bounces+patch=linaro.org@lists.infradead.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from desiato.infradead.org (desiato.infradead.org. [2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by mx.google.com with ESMTPS id u19si16869651lfo.438.2021.05.10.05.02.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 May 2021 05:02:29 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 2001:8b0:10b:1:d65d:64ff:fe57:4e05 as permitted sender) client-ip=2001:8b0:10b:1:d65d:64ff:fe57:4e05; Authentication-Results: mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=desiato.20200630 header.b=T5Gp9ghn; dkim=neutral (body hash did not verify) header.i=@infradead.org header.s=bombadil.20210309 header.b=Lp40rbJL; spf=pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 2001:8b0:10b:1:d65d:64ff:fe57:4e05 as permitted sender) smtp.mailfrom="linux-mtd-bounces+patch=linaro.org@lists.infradead.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:CC:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=+/UJY8Q/EMGKYtG5w40tJxRA40F4Ak0kmZnuWUQI01U=; b=T5Gp9ghn5o51gfw7ORTq7cdc7M G0YTQ2pZCTEiznumWEggBQp/21n8sgVI9udKgH6L5u6Jl/3kQvROYhX5f5tNOxaBMnjLKD8juWTKe aWDCaa03wsTTlHY0OuRcFT4gi0A9FlkwPJoSsbH/YH4ej5m4ydSFjX3AZfUTo4JuVW5r/Vzg7wqch Jh7XGbC2bccUcPCjHc91mG2cBkwB24k0MUE07X02lqoIsGb+tusZHJ21K3Rdv1ZxlUws/SnJuk5TC QVSaiusYmzJOlObeexR6X8IpNwFfSXXlA6VGxIUQpFIisoZd/5/gp72q4U6tjyAn6XzmUpo2p6f2Z oqkwQTJw==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lg4c0-00EB3p-SD; Mon, 10 May 2021 12:02:12 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lg4QG-00E8vX-MZ for linux-mtd@desiato.infradead.org; Mon, 10 May 2021 11:50:04 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Type: Content-Transfer-Encoding:MIME-Version:Message-ID:Date:Subject:CC:To:From: Sender:Reply-To:Content-ID:Content-Description:In-Reply-To:References; bh=FzfkkTcGyYFnSqf9jzvWbtj3qoPX8WvTWWzEFa2cXQ4=; b=Lp40rbJLcmfjUj0SNP/BLLZ7MN g/h2Yz3spI+Bu3mtq6eRYJmX+F4iVPqjFV2hc7/ghuGStomNNATWJ6IjcMRm7kYIPQ0wNSNkP1Wck hgR+Sw51Nm4ayhKc6C0GSWNwWefuLf84Y3yvoutffdegBN0Bm297BTXhMYI7iVDWHl6j3WFYKdO+N y4BejCGq+fX3HLds8f8MERErQjwFFiQPopGqWapuySAkXGUOg5F1ZxSfMtF5je5grXYCLtKdVEUQ6 m3b3oEo47HC9Hnfn+a59+fgxensHWj4M+CT+40PzAUkP9hdRl8qLoCSwxPUHswH9jdXWMMvA2Uogf UIORBE6A==; Received: from szxga05-in.huawei.com ([45.249.212.191]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lg4QC-008dxe-RB for linux-mtd@lists.infradead.org; Mon, 10 May 2021 11:50:02 +0000 Received: from DGGEMS409-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4Fdzn40LblzkYKF; Mon, 10 May 2021 19:47:20 +0800 (CST) Received: from thunder-town.china.huawei.com (10.174.177.72) by DGGEMS409-HUB.china.huawei.com (10.3.19.209) with Microsoft SMTP Server id 14.3.498.0; Mon, 10 May 2021 19:49:50 +0800 From: Zhen Lei To: Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , linux-mtd CC: Zhen Lei Subject: [PATCH 1/1] mtd: rawnand: qcom: Delete an unneeded bool conversion Date: Mon, 10 May 2021 19:49:44 +0800 Message-ID: <20210510114944.3527-1-thunder.leizhen@huawei.com> X-Mailer: git-send-email 2.26.0.windows.1 MIME-Version: 1.0 X-Originating-IP: [10.174.177.72] X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210510_045001_059499_35A6336E X-CRM114-Status: UNSURE ( 9.40 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.3 (--) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: The result of an expression consisting of a single relational operator is already of the bool type and does not need to be evaluated explicitly. No functional change. Signed-off-by: Zhen Lei --- drivers/mtd/nand/raw/qcom_nandc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) Content analysis details: (-2.3 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [45.249.212.191 listed in list.dnswl.org] 0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [45.249.212.191 listed in wl.mailspike.net] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.0 RCVD_IN_MSPIKE_WL Mailspike good senders X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-mtd" Errors-To: linux-mtd-bounces+patch=linaro.org@lists.infradead.org The result of an expression consisting of a single relational operator is already of the bool type and does not need to be evaluated explicitly. No functional change. Signed-off-by: Zhen Lei --- drivers/mtd/nand/raw/qcom_nandc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) -- 2.26.0.106.g9fadedd ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/ diff --git a/drivers/mtd/nand/raw/qcom_nandc.c b/drivers/mtd/nand/raw/qcom_nandc.c index a64fb6ce915daee..22e6ca521185dca 100644 --- a/drivers/mtd/nand/raw/qcom_nandc.c +++ b/drivers/mtd/nand/raw/qcom_nandc.c @@ -1850,8 +1850,7 @@ static int parse_read_errors(struct qcom_nand_host *host, u8 *data_buf, * ERASED_CW bits are set. */ if (host->bch_enabled) { - erased = (erased_cw & ERASED_CW) == ERASED_CW ? - true : false; + erased = (erased_cw & ERASED_CW) == ERASED_CW; /* * For RS ECC, HW reports the erased CW by placing * special characters at certain offsets in the buffer.