Skip to content

Commit

Permalink
drm/panel: remove set but not used variable 'config'
Browse files Browse the repository at this point in the history
drivers/gpu/drm/panel/panel-truly-nt35597.c:493:31: warning: variable ‘config’ set but not used [-Wunused-but-set-variable]
  const struct nt35597_config *config;
                               ^~~~~~

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20200417101401.19388-1-yuehaibing@huawei.com
  • Loading branch information
YueHaibing authored and Sam Ravnborg committed Apr 25, 2020
1 parent 232f23e commit 3d930aa
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/gpu/drm/panel/panel-truly-nt35597.c
Original file line number Diff line number Diff line change
Expand Up @@ -490,9 +490,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];

Expand Down

0 comments on commit 3d930aa

Please sign in to comment.