linux/drivers/pinctrl/actions
Colin Ian King 23ee0f1920 pinctrl: actions: fix unsigned less than zero comparison
The check to see if platform_get_irq failed is performed on the
unsigned value of pctrl->irq[i] and the check is never true because
an unsigned cannot be less than zero.  Fix this by assinging the
signed int ret to the return of platform_get_irq and checking ret
instead.

Detected by CoverityScan, CID#1470247 ("Unsigned comparison against 0")

Fixes: 6c5d0736e9 ("pinctrl: actions: Add interrupt support for OWL S900 SoC")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2018-07-02 16:05:01 +02:00
..
Kconfig pinctrl: actions: Add interrupt support for OWL S900 SoC 2018-06-29 14:28:59 +02:00
Makefile
pinctrl-owl.c pinctrl: actions: fix unsigned less than zero comparison 2018-07-02 16:05:01 +02:00
pinctrl-owl.h pinctrl: actions: Add interrupt support for OWL S900 SoC 2018-06-29 14:28:59 +02:00
pinctrl-s900.c pinctrl: actions: Add interrupt support for OWL S900 SoC 2018-06-29 14:28:59 +02:00