diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2023-03-09 20:56:26 +0200 |
---|---|---|
committer | Bartosz Golaszewski <bartosz.golaszewski@linaro.org> | 2023-03-15 10:47:55 +0100 |
commit | c122f461ccac0e78e8e45d4f6de14e58942572f6 (patch) | |
tree | 6edb7634c04380ec94c9b24a10d0dbf47959a28f /drivers/gpio/gpio-max732x.c | |
parent | 7aa90f9055c16c79c0ad174c726f95723d122fe6 (diff) |
gpiolib: Remove duplicative check in gpiod_find_and_request()
The gpiod_find_by_fwnode() already checks for NULL and returns
correct error code in case fwnode is invalid. Drop the respective
check and assignment in the gpiod_find_and_request().
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Diffstat (limited to 'drivers/gpio/gpio-max732x.c')
0 files changed, 0 insertions, 0 deletions