Skip to content

Commit

Permalink
serial: msm_serial: fix comparison of different types
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jingoo Han authored and Greg Kroah-Hartman committed Aug 12, 2013
1 parent 1053f4d commit 4f749f2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/tty/serial/msm_serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 4f749f2

Please sign in to comment.