tty: serial: lpc32xx_hs: fix handling platform_get_irq result
authorAndrzej Hajda <a.hajda@samsung.com>
Mon, 21 Sep 2015 13:33:38 +0000 (15:33 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 4 Oct 2015 18:09:21 +0000 (19:09 +0100)
commit14996122a47bb489233629533bc059af50628ec8
tree09a5b62374d3645fcbb60ee0a0e68fa1f7ff5379
parent618bbaa260a3aa469e13a8f7c3e2a65e456c7005
tty: serial: lpc32xx_hs: fix handling platform_get_irq result

The function can return negative values.

The problem has been detected using proposed semantic patch
scripts/coccinelle/tests/unsigned_lesser_than_zero.cocci [1].

[1]: http://permalink.gmane.org/gmane.linux.kernel/2038576

Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/lpc32xx_hs.c