projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
dz: test after postfix decrement fails in dz_console_putchar()
[firefly-linux-kernel-4.4.55.git]
/
drivers
/
serial
/
dz.c
diff --git
a/drivers/serial/dz.c
b/drivers/serial/dz.c
index 116211fcd36fc196ff12de4aeb36ee8e6194031f..0dddd68b20d27de2dd4e5a8802e4931e954f493b 100644
(file)
--- a/
drivers/serial/dz.c
+++ b/
drivers/serial/dz.c
@@
-819,7
+819,7
@@
static void dz_console_putchar(struct uart_port *uport, int ch)
dz_out(dport, DZ_TCR, mask);
iob();
udelay(2);
- } while (
loops--
);
+ } while (
--loops
);
if (loops) /* Cannot send otherwise. */
dz_out(dport, DZ_TDR, ch);