summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-08-08 17:38:20 +0900
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-08-12 11:35:32 -0700
commit4f749f248266209f066a875937bf51d1d5f4aed5 (patch)
treee7b5a65b47bcad571a79e6935979070adc6f96c8
parent1053f4da626374ae5f4695a62e2814584c2bc2e2 (diff)
downloadtalos-obmc-linux-4f749f248266209f066a875937bf51d1d5f4aed5.tar.gz
talos-obmc-linux-4f749f248266209f066a875937bf51d1d5f4aed5.zip
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 <jg1.han@samsung.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/tty/serial/msm_serial.c3
1 files changed, 2 insertions, 1 deletions
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;
OpenPOWER on IntegriCloud