commit | c122f461ccac0e78e8e45d4f6de14e58942572f6 | [log] [tgz] |
---|---|---|
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | Thu Mar 09 20:56:26 2023 +0200 |
committer | Bartosz Golaszewski <bartosz.golaszewski@linaro.org> | Wed Mar 15 10:47:55 2023 +0100 |
tree | 6edb7634c04380ec94c9b24a10d0dbf47959a28f | |
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>