summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/display
diff options
context:
space:
mode:
authorDavid Francis <David.Francis@amd.com>2018-07-19 22:48:24 +0300
committerAlex Deucher <alexander.deucher@amd.com>2018-08-06 22:35:24 +0300
commitd90e9a3bf5e747f0e3b0c8bec96d8699493f63ab (patch)
treea8910ec9de691f0d22a002a9845b90c09d86541e /drivers/gpu/drm/amd/display
parent53a53f8687faf492df2644d8c18ff0217fc18730 (diff)
downloadlinux-d90e9a3bf5e747f0e3b0c8bec96d8699493f63ab.tar.xz
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 <David.Francis@amd.com> Reviewed-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display')
-rw-r--r--drivers/gpu/drm/amd/display/dc/dce112/dce112_resource.c3
1 files changed, 0 insertions, 3 deletions
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 84a05ff2d674..288129343c77 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++) {