diff options
author | Vasiliy Kulikov <segooon@gmail.com> | 2010-10-10 21:28:35 +0400 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2010-10-12 13:22:42 -0700 |
commit | 79fc3e21401be720708931002268b676e36fcf41 (patch) | |
tree | 21ec1f1afa8950d1931ce3e7a4d7914629df7738 /drivers/serial/omap-serial.c | |
parent | 0e4905c0199d683497833be60a428c784d7575b8 (diff) | |
download | op-kernel-dev-79fc3e21401be720708931002268b676e36fcf41.zip op-kernel-dev-79fc3e21401be720708931002268b676e36fcf41.tar.gz |
serial: omap-serial: fix signess error
"ret" is unsigned, so check for (ret < 0) made no sense.
Made it signed.
Signed-off-by: Vasiliy Kulikov <segooon@gmail.com>
Acked-by: Kevin Hilman <khilman@deeprootsystems.com
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'drivers/serial/omap-serial.c')
-rw-r--r-- | drivers/serial/omap-serial.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/serial/omap-serial.c b/drivers/serial/omap-serial.c index 2ee1d32..14365f7 100644 --- a/drivers/serial/omap-serial.c +++ b/drivers/serial/omap-serial.c @@ -1055,7 +1055,7 @@ static void serial_omap_rx_timeout(unsigned long uart_no) { struct uart_omap_port *up = ui[uart_no]; unsigned int curr_dma_pos, curr_transmitted_size; - unsigned int ret = 0; + int ret = 0; curr_dma_pos = omap_get_dma_dst_pos(up->uart_dma.rx_dma_channel); if ((curr_dma_pos == up->uart_dma.prev_rx_dma_pos) || |