mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-11-19 08:05:27 +08:00
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>
This commit is contained in:
parent
0e4905c019
commit
79fc3e2140
@ -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) ||
|
||||
|
Loading…
Reference in New Issue
Block a user