Commit 1c8cc350 authored by Bin Liu's avatar Bin Liu Committed by Vignesh Raghavendra
Browse files

serial: 8250: pruss: fix overflow in conversion build warning



Fix the build warning in arm64 build:

drivers/tty/serial/8250/8250_pruss.c: In function 'pruss8250_set_divisor':
drivers/tty/serial/8250/8250_pruss.c:131:41: warning: overflow in conversion from 'long unsigned int' to 'int' changes value from '18446744073709551614' to '-2' [-Woverflow]

Fixes: 57fe8746 ("serial: 8250: add pruss uart driver")

Signed-off-by: default avatarBin Liu <b-liu@ti.com>
Signed-off-by: default avatarVignesh Raghavendra <vigneshr@ti.com>
parent fd5cf3b4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment