[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20190304201930.1622839-1-arnd@arndb.de>
Date: Mon, 4 Mar 2019 21:19:19 +0100
From: Arnd Bergmann <arnd@...db.de>
To: "Enrico Weigelt, metux IT consult" <info@...ux.net>,
Darren Hart <dvhart@...radead.org>,
Andy Shevchenko <andy@...radead.org>
Cc: Linus Walleij <linusw@...nel.org>,
Andy Shevchenko <andy.shevchenko@...il.com>,
linux-gpio@...r.kernel.org, Arnd Bergmann <arnd@...db.de>,
Linus Walleij <linus.walleij@...aro.org>,
platform-driver-x86@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH 1/3] x86: apuv2: remove unused variable
The driver was newly introduced but the version that got merged
produces a harmless compiler warning:
drivers/platform/x86/pcengines-apuv2.c: In function 'apu_board_init':
drivers/platform/x86/pcengines-apuv2.c:211:6: error: unused variable 'rc' [-Werror=unused-variable]
Remove the evidently useless variable.
Fixes: f8eb0235f659 ("x86: pcengines apuv2 gpio/leds/keys platform driver")
Signed-off-by: Arnd Bergmann <arnd@...db.de>
---
drivers/platform/x86/pcengines-apuv2.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/platform/x86/pcengines-apuv2.c b/drivers/platform/x86/pcengines-apuv2.c
index dcb084f6b892..c1ca931e1fab 100644
--- a/drivers/platform/x86/pcengines-apuv2.c
+++ b/drivers/platform/x86/pcengines-apuv2.c
@@ -208,7 +208,6 @@ static struct platform_device * __init apu_create_pdev(
static int __init apu_board_init(void)
{
- int rc;
const struct dmi_system_id *id;
id = dmi_first_match(apu_gpio_dmi_table);
--
2.20.0
Powered by blists - more mailing lists