mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
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 <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
1053f4da62
commit
4f749f2482
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue