]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
gpio: Remove redundant check for struct gpio_chip
authorTzung-Bi Shih <tzungbi@kernel.org>
Mon, 23 Feb 2026 06:17:22 +0000 (14:17 +0800)
committerBartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Fri, 27 Feb 2026 09:05:20 +0000 (10:05 +0100)
commit049f71131734c47a6aaca2472273aef2cd17a6d8
tree1be7935e4ff277dbb61717ea1fc2f4bf5b5ef6a0
parentcc11f4ef666fbca02c8a2f11d0184d57e6b75579
gpio: Remove redundant check for struct gpio_chip

gpiolib_dbg_show() is only called by gpiolib_seq_show() which has
ensured the struct gpio_chip.  Remove the redundant check in
gpiolib_dbg_show().

Reviewed-by: Linus Walleij <linusw@kernel.org>
Signed-off-by: Tzung-Bi Shih <tzungbi@kernel.org>
Link: https://patch.msgid.link/20260223061726.82161-3-tzungbi@kernel.org
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
drivers/gpio/gpiolib.c