8250-men-mcb: fix signed/unsigned confusion
authorPavel Machek <pavel@denx.de>
Sat, 6 Jun 2020 15:11:46 +0000 (17:11 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 27 Jun 2020 14:12:45 +0000 (16:12 +0200)
commit894b867ac9dc6906022c27ace2339418db666002
tree4abef0e3f89999a17e00683e654d25f047fef155
parent167cbce27444be3203081b97ea65178c4088b062
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>
drivers/tty/serial/8250/8250_men_mcb.c