mtd: rawnand: qcom: Delete an unneeded bool conversion
authorZhen Lei <thunder.leizhen@huawei.com>
Mon, 10 May 2021 11:49:44 +0000 (19:49 +0800)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Wed, 26 May 2021 14:26:39 +0000 (16:26 +0200)
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 <thunder.leizhen@huawei.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20210510114944.3527-1-thunder.leizhen@huawei.com
drivers/mtd/nand/raw/qcom_nandc.c

index ef90b66..45de67a 100644 (file)
@@ -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.