From: David Francis Date: Thu, 19 Jul 2018 19:48:24 +0000 (-0400) Subject: drm/amd/display: Destroy aux_engines only once X-Git-Tag: for-linus-4.19b-rc1b-tag~59^2^2~12 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=d90e9a3bf5e747f0e3b0c8bec96d8699493f63ab;p=users%2Fdwmw2%2Flinux.git drm/amd/display: Destroy aux_engines only once [Why] In the dce112 function to destroy the resource pool, engines (the aux engines) is destroyed twice. This has no ill effects but is a tad redundant. [How] Remove the redundant call Signed-off-by: David Francis Reviewed-by: Bhawanpreet Lakha Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/display/dc/dce112/dce112_resource.c b/drivers/gpu/drm/amd/display/dc/dce112/dce112_resource.c index 84a05ff2d6748..288129343c778 100644 --- a/drivers/gpu/drm/amd/display/dc/dce112/dce112_resource.c +++ b/drivers/gpu/drm/amd/display/dc/dce112/dce112_resource.c @@ -677,9 +677,6 @@ static void destruct(struct dce110_resource_pool *pool) pool->base.timing_generators[i] = NULL; } - if (pool->base.engines[i] != NULL) - dce110_engine_destroy(&pool->base.engines[i]); - } for (i = 0; i < pool->base.stream_enc_count; i++) {