提交 4f749f24 编写于 作者: J Jingoo Han 提交者: Greg Kroah-Hartman

serial: msm_serial: fix comparison of different types

Fix the following sparse warning:

drivers/tty/serial/msm_serial.c:237:37: error: incompatible types in comparison expression (different type sizes)
Signed-off-by: NJingoo Han <jg1.han@samsung.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 1053f4da
......@@ -234,7 +234,8 @@ static void handle_tx(struct uart_port *port)
break;
if (msm_port->is_uartdm)
num_chars = min(tx_count - tf_pointer, sizeof(buf));
num_chars = min(tx_count - tf_pointer,
(unsigned int)sizeof(buf));
else
num_chars = 1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册