summaryrefslogtreecommitdiff
path: root/drivers/tty/serial/stm32-usart.c
diff options
context:
space:
mode:
authorPavel Machek <pavel@denx.de>2020-06-06 18:11:46 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-06-27 17:12:45 +0300
commit894b867ac9dc6906022c27ace2339418db666002 (patch)
tree4abef0e3f89999a17e00683e654d25f047fef155 /drivers/tty/serial/stm32-usart.c
parent167cbce27444be3203081b97ea65178c4088b062 (diff)
downloadlinux-894b867ac9dc6906022c27ace2339418db666002.tar.xz
8250-men-mcb: fix signed/unsigned confusion
get_num_ports returns -ENODEV, and the result is stored in int, so it should not be unsigned. Zero ports does not seem to make sense, so make that check consistent. Signed-off-by: Pavel Machek (CIP) <pavel@denx.de> Link: https://lore.kernel.org/r/20200606151146.GA10940@amd Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial/stm32-usart.c')
0 files changed, 0 insertions, 0 deletions