gpio: mlxbf3: add an error code check in mlxbf3_gpio_probe
authorSu Hui <suhui@nfschina.com>
Fri, 12 Jan 2024 04:24:04 +0000 (12:24 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Jan 2024 23:35:58 +0000 (15:35 -0800)
commit52acfebcea001acdc042f28c031bdfa5583baf48
treedfd9f8f287f57b7cfb6a84c3239b16939dd4d7ee
parentfd526aa39f042daa97c8d91c11ae668eefde5300
gpio: mlxbf3: add an error code check in mlxbf3_gpio_probe

[ Upstream commit d460e9c2075164e9b1fa9c4c95f8c05517bd8752 ]

Clang static checker warning: Value stored to 'ret' is never read.
bgpio_init() returns error code if failed, it's better to add this
check.

Fixes: cd33f216d241 ("gpio: mlxbf3: Add gpio driver support")
Signed-off-by: Su Hui <suhui@nfschina.com>
[Bartosz: add the Fixes: tag]
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpio/gpio-mlxbf3.c