drm/amd/display: Remove set but not unused variable 'stream_status'
Subsystems (3)
RFC PATCH 1/1 drm/amd/display: Remove set but not unused variable 'stream_status'
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn10/dcn10_hw_sequencer.c:
In function dcn10_post_unlock_program_front_end:drivers/gpu/drm/amd/amdgpu/../display/dc/dcn10/dcn10_hw_sequencer.c:2623:29:
warning: variable stream_status set but not used [-Wunused-but-set-variable]
commit bbf5f6c3f83b ("drm/amd/display: Split program front end part that occur outside lock") involved this unused variable.
--- drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-)
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c +1 -7
@@ -2610,7 +2610,7 @@ void dcn10_post_unlock_program_front_end(struct dc *dc, struct dc_state *context) { - int i, j; + int i;DC_LOGGER_INIT (dc->ctx->logger);
@@ -2620,14 +2620,8 @@ void dcn10_post_unlock_program_front_end(if (!pipe_ctx->top_pipe && !pipe_ctx->prev_odm_pipe && pipe_ctx->stream) { -struct dc_stream_status *stream_status =NULL ;struct timing_generator *tg = pipe_ctx->stream_res.tg; -for (j =0 ; j < context->stream_count; j++) { -if (pipe_ctx->stream == context->streams[j]) - stream_status = &context->stream_status[j]; - } -if (context->stream_status[i].plane_count ==0 )false_optc_underflow_wa (dc, pipe_ctx->stream, tg); }
Signature · 1 line
2.7.4
Alex Deucher
AppliedQuoted 10 lines · YueHaibing
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn10/dcn10_hw_sequencer.c:
In functiondcn10_post_unlock_program_front_end:drivers/gpu/drm/amd/amdgpu/../display/dc/dcn10/dcn10_hw_sequencer.c:2623:29:
warning: variablestream_statusset but not used [-Wunused-but-set-variable]commit
bbf5f6c3f83b("drm/amd/display: Split program front end part that occur outside lock") involved this unused variable.Signed-off-by YueHaibing <[email protected]>
Applied. Thanks!
Alex
Quoted 36 lines
--- drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-)drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c +1
-8@@ -2610,7 +2610,7 @@ void dcn10_post_unlock_program_front_end(struct dc *dc, struct dc_state *context) { - int i, j; + int i;DC_LOGGER_INIT (dc->ctx->logger);@@ -2620,14 +2620,8 @@ void dcn10_post_unlock_program_front_end(if (!pipe_ctx->top_pipe && !pipe_ctx->prev_odm_pipe && pipe_ctx->stream) { -struct dc_stream_status *stream_status =NULL ;struct timing_generator *tg = pipe_ctx->stream_res.tg; -for (j =0 ; j < context->stream_count; j++) { -if (pipe_ctx->stream == context->streams[j]) - stream_status = &context->stream_status[j]; - } -if (context->stream_status[i].plane_count ==0 )false_optc_underflow_wa (dc, pipe_ctx->stream, tg); } --2.7.4
Quoted 4 lines
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx