drm/panel: remove set but not used variable 'config'
Subsystems (3)
PATCH 1/1 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 <[email protected]>
--- drivers/gpu/drm/panel/panel-truly-nt35597.c | 2 -- 1 file changed, 2 deletions(-)
drivers/gpu/drm/panel/panel-truly-nt35597.c +0 -2
@@ -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];
Signature · 1 line
2.17.1
Hi YueHaibing
Quoted 5 lines · YueHaibing
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 <[email protected]>
Thanks. Applied to drm-misc-next, so it will appear in mainline kernel in the next merge window.
Sam
Quoted 26 lines
--- drivers/gpu/drm/panel/panel-truly-nt35597.c | 2 -- 1 file changed, 2 deletions(-)drivers/gpu/drm/panel/panel-truly-nt35597.c +0
-2@@ -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];Signature · 7 lines
2.17.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel