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.
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
diff --git a/drivers/char/lp.c b/drivers/char/lp.c
index be14abf..8c4dd1a 100644
--- a/drivers/char/lp.c
+++ b/drivers/char/lp.c
@@ -900,7 +900,7 @@
printk(KERN_INFO "lp: too many ports, %s ignored.\n",
str);
} else if (!strcmp(str, "reset")) {
- reset = 1;
+ reset = true;
}
return 1;
}