提交 79fc3e21 编写于 作者: V Vasiliy Kulikov 提交者: Tony Lindgren

serial: omap-serial: fix signess error

"ret" is unsigned, so check for (ret < 0) made no sense.
Made it signed.
Signed-off-by: NVasiliy Kulikov <segooon@gmail.com>
Acked-by: Kevin Hilman <khilman@deeprootsystems.com
Signed-off-by: NTony Lindgren <tony@atomide.com>
上级 0e4905c0
......@@ -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) ||
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册