diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-08-08 12:38:20 +0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-08-12 22:35:32 +0400 |
commit | 4f749f248266209f066a875937bf51d1d5f4aed5 (patch) | |
tree | e7b5a65b47bcad571a79e6935979070adc6f96c8 /drivers/tty/serial/msm_serial.c | |
parent | 1053f4da626374ae5f4695a62e2814584c2bc2e2 (diff) | |
download | linux-4f749f248266209f066a875937bf51d1d5f4aed5.tar.xz |
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>
Diffstat (limited to 'drivers/tty/serial/msm_serial.c')
-rw-r--r-- | drivers/tty/serial/msm_serial.c | 3 |
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; |