gpio: omap: Remove redundant dev_err_probe() and zero value handle code
authorRuan Jinjie <ruanjinjie@huawei.com>
Thu, 27 Jul 2023 12:40:43 +0000 (20:40 +0800)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Sat, 29 Jul 2023 13:50:44 +0000 (15:50 +0200)
commit291bc793a0083ce69acc7ceb77c9ec7af4401093
treeaf52c62fcef19e69db20ed213972baafad97454a
parent92f7a35836c2e13ae5f0dc8c7f889e92f66a9d19
gpio: omap: Remove redundant dev_err_probe() and zero value handle code

There is no need to call the dev_err_probe() function directly to print
a custom message when handling an error from platform_get_irq() function as
it is going to display an appropriate error message in case of a failure.

And the code to handle bank->irq = 0 is redundant because
platform_get_irq() do not return 0.

Signed-off-by: Ruan Jinjie <ruanjinjie@huawei.com>
Reviewed-by: Andy Shevchenko <andy@kernel.org>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
drivers/gpio/gpio-omap.c