summaryrefslogtreecommitdiff
path: root/include/linux/mfd
diff options
context:
space:
mode:
authorLv Ruyi <lv.ruyi@zte.com.cn>2022-04-12 08:53:05 +0000
committerLee Jones <lee.jones@linaro.org>2022-04-26 15:12:22 +0100
commit3b49ae380ce1a3054e0c505dd9a356b82a5b48e8 (patch)
tree918d0440032aa7e19fd4db088bc7739fc44a4918 /include/linux/mfd
parent7f5aaa4a0ae6948eace6cf30f40a3ec27ece8441 (diff)
mfd: ipaq-micro: Fix error check return value of platform_get_irq()
platform_get_irq() return negative value on failure, so null check of irq is incorrect. Fix it by comparing whether it is less than zero. Fixes: dcc21cc09e3c ("mfd: Add driver for Atmel Microcontroller on iPaq h3xxx") Reported-by: Zeal Robot <zealci@zte.com.cn> Signed-off-by: Lv Ruyi <lv.ruyi@zte.com.cn> Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Lee Jones <lee.jones@linaro.org> Link: https://lore.kernel.org/r/20220412085305.2533030-1-lv.ruyi@zte.com.cn
Diffstat (limited to 'include/linux/mfd')
0 files changed, 0 insertions, 0 deletions