mirror of
https://github.com/torvalds/linux.git
synced 2026-05-24 15:12:13 +02:00
drm/amd/display: Silence unused variable warning
[WHY & HOW] Remove unused dpp_pipe_count variable. Reviewed-by: Austin Zheng <austin.zheng@amd.com> Signed-off-by: Clay King <clayking@amd.com> Signed-off-by: Alex Hung <alex.hung@amd.com> Tested-by: Dan Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
aef8c3253e
commit
b91cfeb6f2
|
|
@ -909,10 +909,10 @@ static unsigned int get_source_mpc_factor(const struct dml2_context *ctx,
|
|||
const struct dc_plane_state *plane)
|
||||
{
|
||||
struct pipe_ctx *dpp_pipes[MAX_PIPES] = {0};
|
||||
int dpp_pipe_count = ctx->config.callbacks.get_dpp_pipes_for_plane(plane,
|
||||
&state->res_ctx, dpp_pipes);
|
||||
|
||||
ASSERT(dpp_pipe_count > 0);
|
||||
if (ctx->config.callbacks.get_dpp_pipes_for_plane(plane, &state->res_ctx, dpp_pipes) <= 0)
|
||||
ASSERT(false);
|
||||
|
||||
return ctx->config.callbacks.get_mpc_slice_count(dpp_pipes[0]);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user