diff options
author | YueHaibing <yuehaibing@huawei.com> | 2020-04-17 18:14:01 +0800 |
---|---|---|
committer | Sam Ravnborg <sam@ravnborg.org> | 2020-04-25 16:56:54 +0200 |
commit | 3d930aacd637cca551f216c61b2e1c455db58eb0 (patch) | |
tree | 3f8d0b15316b2f9868fbbc44738e7c2ef354fe0c /drivers/gpu/drm/panel/panel-truly-nt35597.c | |
parent | 232f23e8cd97cc27e91a6e0f9cd055248abd329b (diff) | |
download | linux-stable-3d930aacd637cca551f216c61b2e1c455db58eb0.tar.gz linux-stable-3d930aacd637cca551f216c61b2e1c455db58eb0.tar.bz2 linux-stable-3d930aacd637cca551f216c61b2e1c455db58eb0.zip |
drm/panel: remove set but not used variable 'config'
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
Diffstat (limited to 'drivers/gpu/drm/panel/panel-truly-nt35597.c')
-rw-r--r-- | drivers/gpu/drm/panel/panel-truly-nt35597.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/gpu/drm/panel/panel-truly-nt35597.c b/drivers/gpu/drm/panel/panel-truly-nt35597.c index 012ca62bf30e..f0ad6081570f 100644 --- a/drivers/gpu/drm/panel/panel-truly-nt35597.c +++ b/drivers/gpu/drm/panel/panel-truly-nt35597.c @@ -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]; |