summaryrefslogtreecommitdiff
path: root/drivers/gpio
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2018-12-18 12:28:02 +0000
committerLinus Walleij <linus.walleij@linaro.org>2018-12-21 11:31:28 +0100
commit6c905f91d8ae103cc0767267509a456f961a279d (patch)
treec7a5068fabf2b9c283b89a4f1c3b308c9e21c71e /drivers/gpio
parentf0df462f3ae1d10131f8ff7daa016ce1a8686727 (diff)
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')
-rw-r--r--drivers/gpio/gpiolib-acpi.c1
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);