]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: remove useless if/else
authorZou Wei <zou_wei@huawei.com>
Wed, 28 Oct 2020 08:36:11 +0000 (16:36 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 30 Oct 2020 05:02:13 +0000 (01:02 -0400)
commitff6a7d3fd9a8853f7e310c31b0701cd5c96a8406
tree763b19707e9dc99599e37f04906ccef51fe04209
parentad9be5a485cd52ee76e675022dfb7c6bb543dc26
drm/amd/display: remove useless if/else

Fix the following coccinelle report:

./drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c:1367:3-5:
WARNING: possible condition with no effect (if == else)

Both branches are the same, so remove the if/else altogether.

Fixes: 0aa98eb74d36 ("drm/amd/display: Remove extra pairs of parentheses in dce_calcs.c")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Zou Wei <zou_wei@huawei.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c