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

irqchip/aspeed-i2c-ic: Fix return value check in aspeed_i2c_ic_of_init()



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

Reviewed-by: default avatarBrendan Higgins <brendanhiggins@google.com>
Signed-off-by: default avatarWei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: default avatarMarc Zyngier <marc.zyngier@arm.com>
parent 215f4cc0
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment