cxl: remove unneeded conversions to bool
Subsystems (2)
PATCH 6/14 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
@@ -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