mirror of
https://github.com/torvalds/linux.git
synced 2024-12-23 11:21:33 +00:00
23ee0f1920
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:
|
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
pinctrl-owl.c | ||
pinctrl-owl.h | ||
pinctrl-s900.c |