]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amd/display: use swap() in update_phy_id_mapping()
authorJiapeng Chong <jiapeng.chong@linux.alibaba.com>
Thu, 12 Dec 2024 01:47:17 +0000 (09:47 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 18 Dec 2024 17:16:30 +0000 (12:16 -0500)
commit6f685a8134cb40b8b76401d2a6b1d62a001669be
treec4a2978d94cc1f44ecbbe62013b2431f2aabb1cb
parent69b54d7c7c9435462322e451207a0de9b3409751
drm/amd/display: use swap() in update_phy_id_mapping()

Use existing swap() function rather than duplicating its implementation.

./drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crc.c:185:47-48: WARNING opportunity for swap().
./drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crc.c:125:53-54: WARNING opportunity for swap().

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=12335
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crc.c