diff options
author | Gustavo A. R. Silva <gustavo@embeddedor.com> | 2018-01-23 09:35:29 -0600 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-01-25 10:56:02 +0100 |
commit | 9ff6576e124b1227c27c1da43fe5f8ee908263e0 (patch) | |
tree | c47a6cde74b97105d684cebd47c6a3c518750914 /drivers | |
parent | aac6830ec1cb681544212838911cdc57f2638216 (diff) | |
download | linux-9ff6576e124b1227c27c1da43fe5f8ee908263e0.tar.bz2 |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/char/lp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/lp.c b/drivers/char/lp.c index be14abf70da1..8c4dd1a3bb6a 100644 --- a/drivers/char/lp.c +++ b/drivers/char/lp.c @@ -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; } |