char: lp: use true or false for boolean values
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.
Signed-off-by Gustavo A. R. Silva <[email protected]>
--- drivers/char/lp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/char/lp.c +1 -1
@@ -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