]> git.baikalelectronics.ru Git - kernel.git/commit
irqchip/aspeed-i2c-ic: Fix return value check in aspeed_i2c_ic_of_init()
authorWei Yongjun <weiyongjun1@huawei.com>
Wed, 11 Oct 2017 10:50:23 +0000 (10:50 +0000)
committerMarc Zyngier <marc.zyngier@arm.com>
Thu, 19 Oct 2017 10:22:43 +0000 (11:22 +0100)
commitb797b6e067c86caaa2ff8319bd0f644d1f1f6a93
treef51ac6c8e5f86fdeea99582bd3ece222567f451c
parent16cbf0b0d3981032bbe7d27bc63baeff39710bfd
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: Brendan Higgins <brendanhiggins@google.com>
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
drivers/irqchip/irq-aspeed-i2c-ic.c