]> git.baikalelectronics.ru Git - kernel.git/commit
bus: arm-integrator-lm: Fix return value check in integrator_ap_lm_probe()
authorWei Yongjun <weiyongjun1@huawei.com>
Mon, 25 May 2020 09:16:34 +0000 (11:16 +0200)
committerArnd Bergmann <arnd@arndb.de>
Mon, 25 May 2020 22:02:42 +0000 (00:02 +0200)
commitbd34a8d01b025dbf0440f53fb19ac9d146cea171
treecc4364cb07cad7432a14d84f6c90558736f0ea36
parentb6662fe94c222c0a2b63e8d19abc30288e63a316
bus: arm-integrator-lm: Fix return value check in integrator_ap_lm_probe()

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

Link: https://lore.kernel.org/r/20200525091634.8274-1-linus.walleij@linaro.org
Fixes: c797b2cff30f ("bus: Add driver for Integrator/AP logic modules")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Link: https://lore.kernel.org/r/20200520032150.165388-1-weiyongjun1@huawei.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
drivers/bus/arm-integrator-lm.c