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)
commit28d76d48368ca0df9a4fa14e65965d01d42e9d52
tree1b5285a7df71b92548f754179da2be141d392ea0
parentf349f772b05cafc5ab551f645e9051bcdae8ec86
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