summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorVasiliy Kulikov <segooon@gmail.com>2010-10-10 19:28:35 +0200
committerTony Lindgren <tony@atomide.com>2010-10-12 22:22:42 +0200
commit79fc3e21401be720708931002268b676e36fcf41 (patch)
tree21ec1f1afa8950d1931ce3e7a4d7914629df7738 /drivers
parentOMAP3: DMA: Errata i541: sDMA FIFO draining does not finish (diff)
downloadlinux-79fc3e21401be720708931002268b676e36fcf41.tar.xz
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')
-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) ||