diff options
author | Karthikeyan Ramasubramanian <kramasub@codeaurora.org> | 2018-04-07 02:49:00 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-04-23 10:22:30 +0200 |
commit | 066cd1c4e4b9b43116f2bf0f4a84ac7235e7abec (patch) | |
tree | 9af0cf1859485d85197b0bd2d7ea70bb909a4996 /drivers/tty/tty_jobctrl.c | |
parent | earlycon: Use a pointer table to fix __earlycon_table stride (diff) | |
download | linux-066cd1c4e4b9b43116f2bf0f4a84ac7235e7abec.tar.xz linux-066cd1c4e4b9b43116f2bf0f4a84ac7235e7abec.zip |
tty: serial: qcom_geni_serial: Use signed variable to get IRQ
The platform_get_irq can return error. Assigning the return value to an
unsigned variable and checking it for negative value will always return
false.
Use an intermediate signed variable to get IRQ information, check for any
error and then assign it to 'irq' variable inside uart_port structure.
Signed-off-by: Karthikeyan Ramasubramanian <kramasub@codeaurora.org>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/tty_jobctrl.c')
0 files changed, 0 insertions, 0 deletions