Skip to content
Commit 2a2cabd8 authored by Bartosz Golaszewski's avatar Bartosz Golaszewski
Browse files

gpiolib: use gpiochip_get_desc() in gpio_ioctl()



Unduplicate the offset check by simply calling gpiochip_get_desc() and
checking its return value.

Signed-off-by: default avatarBartosz Golaszewski <bgolaszewski@baylibre.com>
Reviewed-by: default avatarAndy Shevchenko <andy.shevchenko@gmail.com>
Reviewed-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 45e23604
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment