projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
90ca633
)
lp: Avoid comma separated statements
author
Joe Perches
<joe@perches.com>
Tue, 25 Aug 2020 04:56:04 +0000
(21:56 -0700)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Fri, 28 Aug 2020 10:35:14 +0000
(12:35 +0200)
Use semicolons and braces.
Signed-off-by: Joe Perches <joe@perches.com>
Link:
https://lore.kernel.org/r/850c60ea44927e8cb7604d178c613ff8fc667984.1598331148.git.joe@perches.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
bd95aba
..
5f50e40
100644
(file)
--- a/
drivers/char/lp.c
+++ b/
drivers/char/lp.c
@@
-853,8
+853,10
@@
static void lp_console_write(struct console *co, const char *s,
count--;
do {
written = parport_write(port, crlf, i);
- if (written > 0)
- i -= written, crlf += written;
+ if (written > 0) {
+ i -= written;
+ crlf += written;
+ }
} while (i > 0 && (CONSOLE_LP_STRICT || written > 0));
}
} while (count > 0 && (CONSOLE_LP_STRICT || written > 0));