]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: fix cond_no_effect.cocci warnings
authorYe Guojin <ye.guojin@zte.com.cn>
Fri, 12 Nov 2021 06:16:51 +0000 (06:16 +0000)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 22 Nov 2021 19:45:02 +0000 (14:45 -0500)
commitc56842d50882862540d0f8e646443ff628247529
tree62467b0e07d570a854d2f672f68c9618beef2089
parent2c39a3f9b4b2584541a98738f1b23926de9a4a7e
drm/amd/display: fix cond_no_effect.cocci warnings

This was found by coccicheck:
./drivers/gpu/drm/amd/display/dc/core/dc_resource.c, 2516, 7-9, WARNING
possible condition with no effect (if == else)

hdmi_info.bits.YQ0_YQ1 is always YYC_QUANTIZATION_LIMITED_RANGE.

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Ye Guojin <ye.guojin@zte.com.cn>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_resource.c