char: lp: use true or false for boolean values
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Tue, 23 Jan 2018 15:35:29 +0000 (09:35 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Jan 2018 09:56:02 +0000 (10:56 +0100)
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>
drivers/char/lp.c

index be14abf..8c4dd1a 100644 (file)
@@ -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;
 }