Skip to content
Commit 1fb51c97 authored by Wei Yongjun's avatar Wei Yongjun Committed by Marc Zyngier
Browse files

irqchip/irq-rda-intc: Fix return value check in rda8810_intc_init()



In case of error, the function of_io_request_and_map() returns ERR_PTR()
and never returns NULL. The NULL test in the return value check should
be replaced with IS_ERR().

Fixes: d852e62a ("irqchip: Add RDA8810PL interrupt driver")
Acked-by: default avatarManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Signed-off-by: default avatarWei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: default avatarMarc Zyngier <marc.zyngier@arm.com>
parent 893b0aff
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment