mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 02/10] cxl: remove unneeded conversions to bool
@ 2019-10-16 18:14 Andrew F. Davis
  2019-10-16 18:14 ` [PATCH 03/10] mtd: nand: qcom: " Andrew F. Davis
  0 siblings, 1 reply; 2+ messages in thread
From: Andrew F. Davis @ 2019-10-16 18:14 UTC (permalink / raw)
  To: Jiri Kosina; +Cc: kernel-janitors, linux-kernel, Andrew F . Davis

Found with scripts/coccinelle/misc/boolconv.cocci.

Signed-off-by: Andrew F. Davis <afd@ti.com>
---
 drivers/misc/cxl/sysfs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/misc/cxl/sysfs.c b/drivers/misc/cxl/sysfs.c
index f0263d1a1fdf..c57ec87bc0a6 100644
--- a/drivers/misc/cxl/sysfs.c
+++ b/drivers/misc/cxl/sysfs.c
@@ -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;
 }
 
-- 
2.17.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-10-16 18:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-16 18:14 [PATCH 02/10] cxl: remove unneeded conversions to bool Andrew F. Davis
2019-10-16 18:14 ` [PATCH 03/10] mtd: nand: qcom: " Andrew F. Davis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome