diff options
author | Wei Yongjun <weiyongjun1@huawei.com> | 2021-06-08 14:38:53 +0000 |
---|---|---|
committer | Bartosz Golaszewski <bgolaszewski@baylibre.com> | 2021-06-11 20:57:59 +0200 |
commit | 622096fdff79458436b7387a86a5c9f000785e4f (patch) | |
tree | 15a9b862d0c12f790d3f77bd2c09155e59f54f38 /drivers/gpio/gpio-tps65218.c | |
parent | 354cb6465a9b04df1e99a43fdd22881ad5c91843 (diff) |
gpio: idt3243x: Fix return value check in idt_gpio_probe()
In case of error, the function devm_platform_ioremap_resource_byname()
returns ERR_PTR() and never returns NULL. The NULL test in the return
value check should be replaced with IS_ERR().
Fixes: 4195926aedca ("gpio: Add support for IDT 79RC3243x GPIO controller")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Diffstat (limited to 'drivers/gpio/gpio-tps65218.c')
0 files changed, 0 insertions, 0 deletions