gpiolib: of: Drop redundant check in of_mm_gpiochip_remove()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 14 Nov 2022 18:46:26 +0000 (20:46 +0200)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Tue, 15 Nov 2022 10:53:13 +0000 (11:53 +0100)
commita431803852de00d8d3c143b19f5690254225538f
tree8f0e94513a371b8014124d0b256a5ee958bde871
parent77289b2f5aa3535a2e49b448c6afb36f5526016a
gpiolib: of: Drop redundant check in of_mm_gpiochip_remove()

The callers never call the function with invalid pointer.
Moreover, compiler quite likely dropped that check anyway
because we use that pointer before the check.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
drivers/gpio/gpiolib-of.c