[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20181218122802.28157-1-colin.king@canonical.com>
Date: Tue, 18 Dec 2018 12:28:02 +0000
From: Colin King <colin.king@...onical.com>
To: Mika Westerberg <mika.westerberg@...ux.intel.com>,
Andy Shevchenko <andriy.shevchenko@...ux.intel.com>,
Linus Walleij <linus.walleij@...aro.org>,
Bartosz Golaszewski <bgolaszewski@...libre.com>,
linux-gpio@...r.kernel.org, linux-acpi@...r.kernel.org
Cc: kernel-janitors@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH][next] gpiolib-acpi: remove unused variable 'err', cleans up build warning
From: Colin Ian King <colin.king@...onical.com>
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@...onical.com>
---
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
Powered by blists - more mailing lists