]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amd/display: use swap() in is_config_schedulable()
authorJiapeng Chong <jiapeng.chong@linux.alibaba.com>
Mon, 24 Jun 2024 01:57:07 +0000 (09:57 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 27 Jun 2024 21:10:39 +0000 (17:10 -0400)
commite97db6d9f068098b35ff1f37db89826c77ea037e
tree0916a8169dc53f50728ca5ccd2f9fd95f1c0f685
parent68936346b67d8a4605d8b66f0d345d6bb1f95f4d
drm/amd/display: use swap() in is_config_schedulable()

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

./drivers/gpu/drm/amd/display/dc/dml2/dml21/src/dml2_pmo/dml2_pmo_dcn4_fams2.c:1171:103-104: WARNING opportunity for swap().
./drivers/gpu/drm/amd/display/dc/dml2/dml21/src/dml2_pmo/dml2_pmo_dcn4_fams2.c:1231:99-100: WARNING opportunity for swap().

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