1
0
Fork 0

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

Signed-off-by: Jarod Wilson <jarod@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
hifive-unleashed-5.1
Jarod Wilson 2011-05-27 15:46:19 -03:00 committed by Mauro Carvalho Chehab
parent e5fd0f7db3
commit 04f561ff87
1 changed files with 2 additions and 9 deletions

View File

@ -739,23 +739,16 @@ static void send_space(unsigned long len)
static void send_pulse(unsigned long len)
{
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++;
time_left = 0;
}
while (bytes_out--) {
outb(PULSE, io + UART_TX);
/* FIXME treba seriozne cakanie z char/serial.c */
while (!(inb(io + UART_LSR) & UART_LSR_THRE))
;
}
#if 0
if (time_left > 0)
safe_udelay(time_left);
#endif
}
#endif