提交 04f561ff 编写于 作者: J Jarod Wilson 提交者: Mauro Carvalho Chehab

[media] [staging] lirc_sir: fix unused-but-set warnings

Signed-off-by: NJarod Wilson <jarod@redhat.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 e5fd0f7d
...@@ -739,23 +739,16 @@ static void send_space(unsigned long len) ...@@ -739,23 +739,16 @@ static void send_space(unsigned long len)
static void send_pulse(unsigned long len) static void send_pulse(unsigned long len)
{ {
long bytes_out = len / TIME_CONST; long bytes_out = len / TIME_CONST;
long time_left;
time_left = (long)len - (long)bytes_out * (long)TIME_CONST; if (bytes_out == 0)
if (bytes_out == 0) {
bytes_out++; bytes_out++;
time_left = 0;
}
while (bytes_out--) { while (bytes_out--) {
outb(PULSE, io + UART_TX); outb(PULSE, io + UART_TX);
/* FIXME treba seriozne cakanie z char/serial.c */ /* FIXME treba seriozne cakanie z char/serial.c */
while (!(inb(io + UART_LSR) & UART_LSR_THRE)) while (!(inb(io + UART_LSR) & UART_LSR_THRE))
; ;
} }
#if 0
if (time_left > 0)
safe_udelay(time_left);
#endif
} }
#endif #endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册