History

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

Jarod Wilson committed 15 years ago

Commit 04f561f1 parent e5fd0f71 file · +2 −9Browse files

Showing the changes to drivers/staging/lirc/lirc_sir.c (1 of 1 file). Show all

Unified · Split

drivers/staging/lirc/lirc_sir.c+2−9
@@ -739,23 +739,16 @@ static void send_space(unsigned long len) · 738 unmodified lines
739739 static void send_pulse(unsigned long len)
740740 {
741741 long bytes_out = len / TIME_CONST;
742− long time_left;
743742
744− time_left = (long)len - (long)bytes_out * (long)TIME_CONST;
745− if (bytes_out == 0) {
743+ if (bytes_out == 0)
746744 bytes_out++;
747− time_left = 0;
748− }
745+
749746 while (bytes_out--) {
750747 outb(PULSE, io + UART_TX);
751748 /* FIXME treba seriozne cakanie z char/serial.c */
752749 while (!(inb(io + UART_LSR) & UART_LSR_THRE))
753750 ;
754751 }
755−#if 0
756− if (time_left > 0)
757− safe_udelay(time_left);
758−#endif
759752 }
760753 #endif
761754