Commit d90e9a3b authored by David Francis's avatar David Francis Committed by Alex Deucher
Browse files

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: default avatarDavid Francis <David.Francis@amd.com>
Reviewed-by: default avatarBhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 53a53f86
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -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++) {