Skip to contentSkip to conversation

char: lp: use true or false for boolean values

PATCH New Gustavo A. R. Silva 1 participant 1 message Jan 23, 2018 Char and misc drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 char: lp: use true or false for boolean values

Assign true or false to boolean variables instead of an integer value.

This issue was detected with the help of Coccinelle.

---
 drivers/char/lp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/char/lp.c +1 -1
index be14abf..8c4dd1a 100644
@@ -900,7 +900,7 @@ static int __init lp_setup (char *str)
 			printk(KERN_INFO "lp: too many ports, %s ignored.\n",
 			       str);
 	} else if (!strcmp(str, "reset")) {
-		reset = 1;
+		reset = true;
 	}
 	return 1;
 }
Signature · 1 line
2.7.4