summaryrefslogtreecommitdiffstats
path: root/drivers/serial
diff options
context:
space:
mode:
authorVasiliy Kulikov <segooon@gmail.com>2010-10-10 21:28:35 +0400
committerTony Lindgren <tony@atomide.com>2010-10-12 13:22:42 -0700
commit79fc3e21401be720708931002268b676e36fcf41 (patch)
tree21ec1f1afa8950d1931ce3e7a4d7914629df7738 /drivers/serial
parent0e4905c0199d683497833be60a428c784d7575b8 (diff)
downloadlinux-79fc3e21401be720708931002268b676e36fcf41.tar.gz
linux-79fc3e21401be720708931002268b676e36fcf41.tar.bz2
linux-79fc3e21401be720708931002268b676e36fcf41.zip
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')
-rw-r--r--drivers/serial/omap-serial.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/serial/omap-serial.c b/drivers/serial/omap-serial.c
index 2ee1d3282a8c..14365f72b664 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) ||