From: Arnd Bergmann Date: Mon, 4 Mar 2019 20:09:07 +0000 (+0100) Subject: x86: apuv2: remove unused variable X-Git-Tag: microblaze-v5.4-rc1~1198^2~2 X-Git-Url: http://git.monstr.eu/?a=commitdiff_plain;h=deb63b0b812f0ef6c37484f23ee3de4b115f7bb2;p=linux-2.6-microblaze.git 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 Reviewed-By: Enrico Weigelt, metux IT consult Signed-off-by: Linus Walleij --- 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);