diff options
author | 2021-06-08 14:38:53 +0000 | |
---|---|---|
committer | 2021-06-11 20:57:59 +0200 | |
commit | 622096fdff79458436b7387a86a5c9f000785e4f (patch) | |
tree | 15a9b862d0c12f790d3f77bd2c09155e59f54f38 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | MAINTAINERS: update ti,omap-gpio.yaml reference (diff) | |
download | linux-dev-622096fdff79458436b7387a86a5c9f000785e4f.tar.xz linux-dev-622096fdff79458436b7387a86a5c9f000785e4f.zip |
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 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions