Skip to contentSkip to conversation

cxl: remove unneeded conversions to bool

PATCH New Andrew F. Davis 1 participant 1 message Mar 15, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 6/14 cxl: remove unneeded conversions to bool

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

---
 drivers/misc/cxl/sysfs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/misc/cxl/sysfs.c +1 -1
index a8b6d6a635e9..64c600e6c045 100644
@@ -161,7 +161,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.11.0