]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: optimize code runtime a bit
authorBernard Zhao <bernard@vivo.com>
Tue, 22 Sep 2020 02:11:03 +0000 (19:11 -0700)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 22 Sep 2020 21:37:38 +0000 (17:37 -0400)
commit40ab78d6f91e1f2f865837d682a787397a3e75fd
tree1b5285a7df71b92548f754179da2be141d392ea0
parentd63c0f9bd599a0b3006b2245c72dc635406a7e35
drm/amd/display: optimize code runtime a bit

In the function dal_ddc_service_query_ddc_data,
get rid of dal_ddc_i2c_payloads_destroy, call
dal_vector_destruct() directly.
This change is to make the code run a bit fast.

Signed-off-by: Bernard Zhao <bernard@vivo.com>
Changes since V1:
*get rid of dal_ddc_i2c_payloads_destroy, call
dal_vector_destruct() directly.

Link for V1:
*https://lore.kernel.org/patchwork/patch/1309014/

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_link_ddc.c