gpio: pca953x: avoid logically dead code
authorHaibo Chen <haibo.chen@nxp.com>
Sat, 10 Dec 2022 22:05:59 +0000 (00:05 +0200)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Mon, 30 Jan 2023 14:55:27 +0000 (15:55 +0100)
commitb1453d1eb93fd34848082fd181ff247f19c0ee86
tree456fdefc354c96817ff8484516158f2e5f96ca21
parent29f5c6e69f6198219c966acc91f99eb7f2669d61
gpio: pca953x: avoid logically dead code

The current code logic make the condition "else if (reg >= 0x54)"
can't be true, cause the dead code. So fix it to match the coder
expectation. This is reported by Coverity.

Fixes: 13c5d4ce8060 ("gpio: pca953x: Add support for PCAL6534")
Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
drivers/gpio/gpio-pca953x.c