[PATCH][next] gpiolib-acpi: remove unused variable 'err', cleans up build warning

From: Colin King
Date: Tue Dec 18 2018 - 07:28:09 EST


From: Colin Ian King <colin.king@xxxxxxxxxxxxx>

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@xxxxxxxxxxxxx>
---
drivers/gpio/gpiolib-acpi.c | 1 -
1 file changed, 1 deletion(-)

diff --git a/drivers/gpio/gpiolib-acpi.c b/drivers/gpio/gpiolib-acpi.c
index fb0496e20ff8..259cf6ab969b 100644
--- a/drivers/gpio/gpiolib-acpi.c
+++ b/drivers/gpio/gpiolib-acpi.c
@@ -908,7 +908,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);
--
2.19.1