[<prev] [next>] [day] [month] [year] [list]
Message-ID: <1541817952-20499-1-git-send-email-yuehaibing@huawei.com>
Date: Sat, 10 Nov 2018 02:45:52 +0000
From: YueHaibing <yuehaibing@...wei.com>
To: Thierry Reding <thierry.reding@...il.com>,
David Airlie <airlied@...ux.ie>
CC: YueHaibing <yuehaibing@...wei.com>,
<dri-devel@...ts.freedesktop.org>, <linux-kernel@...r.kernel.org>,
<kernel-janitors@...r.kernel.org>
Subject: [PATCH -next] drm/panel: Remove set but not used variable 'config'
Fixes gcc '-Wunused-but-set-variable' warning:
drivers/gpu/drm/panel/panel-truly-nt35597.c: In function 'truly_nt35597_panel_add':
drivers/gpu/drm/panel/panel-truly-nt35597.c:488:31: warning:
variable 'config' set but not used [-Wunused-but-set-variable]
It never used since introdution in
1dd0b147c1ff ("drm/panel: Add support for Truly NT35597 panel driver")
Signed-off-by: YueHaibing <yuehaibing@...wei.com>
---
drivers/gpu/drm/panel/panel-truly-nt35597.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/gpu/drm/panel/panel-truly-nt35597.c b/drivers/gpu/drm/panel/panel-truly-nt35597.c
index fc2a66c..2d5a540 100644
--- a/drivers/gpu/drm/panel/panel-truly-nt35597.c
+++ b/drivers/gpu/drm/panel/panel-truly-nt35597.c
@@ -485,9 +485,7 @@ static int truly_nt35597_panel_add(struct truly_nt35597 *ctx)
{
struct device *dev = ctx->dev;
int ret, i;
- const struct nt35597_config *config;
- config = ctx->config;
for (i = 0; i < ARRAY_SIZE(ctx->supplies); i++)
ctx->supplies[i].supply = regulator_names[i];
Powered by blists - more mailing lists