projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aac6830
)
char: lp: use true or false for boolean values
author
Gustavo A. R. Silva
<gustavo@embeddedor.com>
Tue, 23 Jan 2018 15:35:29 +0000
(09:35 -0600)
committer
Greg 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
patch
|
blob
|
history
diff --git
a/drivers/char/lp.c
b/drivers/char/lp.c
index be14abf70da1b0bf0cac316e619203002dbdaaff..8c4dd1a3bb6ab562136e32bad330fd1da2fdb1c5 100644
(file)
--- 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;
}