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

gpiochip_sysfs_unregister() is only called by gpiochip_remove() where
the struct gpio_chip is ensured.

Remove the redundant check.

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