diff options
author | YueHaibing <yuehaibing@huawei.com> | 2020-04-17 13:14:01 +0300 |
---|---|---|
committer | Sam Ravnborg <sam@ravnborg.org> | 2020-04-25 17:56:54 +0300 |
commit | 3d930aacd637cca551f216c61b2e1c455db58eb0 (patch) | |
tree | 3f8d0b15316b2f9868fbbc44738e7c2ef354fe0c /drivers/gpu/drm/panel | |
parent | 232f23e8cd97cc27e91a6e0f9cd055248abd329b (diff) | |
download | linux-3d930aacd637cca551f216c61b2e1c455db58eb0.tar.xz |
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')
-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]; |