projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d510fe7
)
irda: smsc wait count reaches -1
author
Roel Kluin
<roel.kluin@gmail.com>
Fri, 5 Jun 2009 10:54:44 +0000
(12:54 +0200)
committer
Samuel Ortiz
<samuel@sortiz.org>
Fri, 12 Jun 2009 23:56:06 +0000
(
01:56
+0200)
The sir retries count reaches -1 rather than 0.
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Samuel Ortiz <samuel@sortiz.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/net/irda/smsc-ircc2.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/irda/smsc-ircc2.c
b/drivers/net/irda/smsc-ircc2.c
index 59d79807b4d506e4bdca343b8cab1e6fa771d478..d0797adb5f8e7b1eec689fd0e69ae4d1c9ccec37 100644
(file)
--- a/
drivers/net/irda/smsc-ircc2.c
+++ b/
drivers/net/irda/smsc-ircc2.c
@@
-2124,7
+2124,7
@@
static void smsc_ircc_sir_wait_hw_transmitter_finish(struct smsc_ircc_cb *self)
while (count-- > 0 && !(inb(iobase + UART_LSR) & UART_LSR_TEMT))
udelay(1);
- if (count
==
0)
+ if (count
<
0)
IRDA_DEBUG(0, "%s(): stuck transmitter\n", __func__);
}