]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drm/amd/display: Destroy aux_engines only once
authorDavid Francis <David.Francis@amd.com>
Thu, 19 Jul 2018 19:48:24 +0000 (15:48 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 6 Aug 2018 19:35:24 +0000 (14:35 -0500)
[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 <David.Francis@amd.com>
Reviewed-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dce112/dce112_resource.c

index 84a05ff2d67489fe9f2877b6f60817f7414867f1..288129343c77893f7d3db3011e3bfab835a75edc 100644 (file)
@@ -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++) {