]> 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)
commit3c2daf1a7ec162fc270a38bfd9f5ffb7eb6bc24f
tree763b19707e9dc99599e37f04906ccef51fe04209
parent6cf0224c36077e2ab38a534c0becdf3b30c4e202
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: 6b19e176efa1 ("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