cxl: remove unneeded conversions to bool
Subsystems (5)
PATCH 2/10 cxl: remove unneeded conversions to bool
Found with scripts/coccinelle/misc/boolconv.cocci.
Signed-off-by Andrew F. Davis <[email protected]>
--- drivers/misc/cxl/sysfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/misc/cxl/sysfs.c +1 -1
@@ -178,7 +178,7 @@ static ssize_t perst_reloads_same_image_store(struct device *device,if ((rc !=1 ) || !(val =1 || val =0 ))return -EINVAL ; - adapter->perst_same_image = (val =1 ? true : false); + adapter->perst_same_image = (val =1 );return count; }
Signature · 1 line
2.17.1
PATCH 3/10 mtd: nand: qcom: remove unneeded conversions to bool
Found with scripts/coccinelle/misc/boolconv.cocci.
Signed-off-by Andrew F. Davis <[email protected]>
--- drivers/mtd/nand/raw/qcom_nandc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/mtd/nand/raw/qcom_nandc.c +1 -2
@@ -1767,8 +1767,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.
Signature · 1 line
2.17.1