Showing the changes to drivers/staging/lirc/lirc_sir.c (1 of 1 file). Show all
Unified · Split
| @@ -739,23 +739,16 @@ static void send_space(unsigned long len) · 738 unmodified lines | ||
| 739 | 739 | static void send_pulse(unsigned long len) |
| 740 | 740 | { |
| 741 | 741 | long bytes_out = len / TIME_CONST; |
| 742 | − long time_left; | |
| 743 | 742 | |
| 744 | − time_left = (long)len - (long)bytes_out * (long)TIME_CONST; | |
| 745 | − if (bytes_out == 0) { | |
| 743 | + if (bytes_out == 0) | |
| 746 | 744 | bytes_out++; |
| 747 | − time_left = 0; | |
| 748 | − } | |
| 745 | + | |
| 749 | 746 | while (bytes_out--) { |
| 750 | 747 | outb(PULSE, io + UART_TX); |
| 751 | 748 | /* FIXME treba seriozne cakanie z char/serial.c */ |
| 752 | 749 | while (!(inb(io + UART_LSR) & UART_LSR_THRE)) |
| 753 | 750 | ; |
| 754 | 751 | } |
| 755 | −#if 0 | |
| 756 | − if (time_left > 0) | |
| 757 | − safe_udelay(time_left); | |
| 758 | −#endif | |
| 759 | 752 | } |
| 760 | 753 | #endif |
| 761 | 754 | |