]> Gentwo Git Trees - linux/.git/commit
drm/amd/display: Use swap() to simplify code
authorLiao Yuanhong <liaoyuanhong@vivo.com>
Wed, 6 Aug 2025 12:41:20 +0000 (20:41 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 18 Aug 2025 21:01:28 +0000 (17:01 -0400)
commit5599b214c4afcb4bfe213e67336ce8e8dbb0d5ab
tree14bdd7706bc638a80424c3b7ecbfa7541aa51db7
parent8a614ddfad1f3d2baa45b6520688b2032f280a7d
drm/amd/display: Use swap() to simplify code

Replace the original swapping logic with swap() to improve readability and
remove temporary variables

Signed-off-by: Liao Yuanhong <liaoyuanhong@vivo.com>
Reviewed-by: Alex Hung <alex.hung@amd.com>
Tested-by: Dan Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dml2/dml2_dc_resource_mgmt.c