From: Jingoo Han Date: Thu, 8 Aug 2013 08:38:20 +0000 (+0900) Subject: serial: msm_serial: fix comparison of different types X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=4f749f248266209f066a875937bf51d1d5f4aed5;p=linux-beck.git 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: Jingoo Han Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/tty/serial/msm_serial.c b/drivers/tty/serial/msm_serial.c index 252d514b47fb..8f58540d2c71 100644 --- a/drivers/tty/serial/msm_serial.c +++ b/drivers/tty/serial/msm_serial.c @@ -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;