diff options
author | Colin Ian King <colin.king@canonical.com> | 2018-12-18 15:28:02 +0300 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2018-12-21 13:31:28 +0300 |
commit | 6c905f91d8ae103cc0767267509a456f961a279d (patch) | |
tree | c7a5068fabf2b9c283b89a4f1c3b308c9e21c71e /drivers/gpio/gpiolib-acpi.c | |
parent | f0df462f3ae1d10131f8ff7daa016ce1a8686727 (diff) | |
download | linux-6c905f91d8ae103cc0767267509a456f961a279d.tar.xz |
gpiolib-acpi: remove unused variable 'err', cleans up build warning
Variable err is defined but never used. Remove it. Cleans up warning:
warning: unused variable ‘err’ [-Wunused-variable]
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio/gpiolib-acpi.c')
-rw-r--r-- | drivers/gpio/gpiolib-acpi.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/gpio/gpiolib-acpi.c b/drivers/gpio/gpiolib-acpi.c index 722a9befa8a9..d7ac8b9ab7c9 100644 --- a/drivers/gpio/gpiolib-acpi.c +++ b/drivers/gpio/gpiolib-acpi.c @@ -882,7 +882,6 @@ acpi_gpio_adr_space_handler(u32 function, acpi_physical_address address, if (!found) { enum gpiod_flags flags = acpi_gpio_to_gpiod_flags(agpio); const char *label = "ACPI:OpRegion"; - int err; desc = gpiochip_request_own_desc(chip, pin, label, flags); |