summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>2014-11-12 10:28:34 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-11-26 02:06:39 +0100
commit3c59958d5868f77741930402dfcb27e9dc8968d2 (patch)
tree0eb341aa885ad19ef7fdfce3fa79bea8249a9cdf /arch
parenttty: serial: 8250: omap: line is unsigned, don't check < 0 (diff)
downloadlinux-3c59958d5868f77741930402dfcb27e9dc8968d2.tar.xz
linux-3c59958d5868f77741930402dfcb27e9dc8968d2.zip
tty: serial: omap_serial: line is unsigned, don't check < 0
Dan Carpenter reported: |drivers/tty/serial/8250/8250_omap.c:1025 omap8250_probe() |warn: unsigned 'up.port.line' is never less than zero. |1025 if (up.port.line < 0) { Since of_alias_get_id() and pdev->id can get negative I check for the error via ret variable. Reported-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions