Skip to content

Commit

Permalink
serial: omap-serial: fix signess error
Browse files Browse the repository at this point in the history
"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>
  • Loading branch information
Vasiliy Kulikov authored and Tony Lindgren committed Oct 12, 2010
1 parent 0e4905c commit 79fc3e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/serial/omap-serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) ||
Expand Down

0 comments on commit 79fc3e2

Please sign in to comment.