Commit 04f561ff8714c89733dcf1d178b64d100d5a084a
Committed by
Mauro Carvalho Chehab
1 parent
e5fd0f7db3
Exists in
master
and in
4 other branches
[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>
Showing 1 changed file with 2 additions and 9 deletions Side-by-side Diff
drivers/staging/lirc/lirc_sir.c
| ... | ... | @@ -739,23 +739,16 @@ |
| 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 |