diff options
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 252d514b47f..8f58540d2c7 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; |