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)
commitcfeb1055e5f479f03278c0915405d182ed2f8fca
tree763b19707e9dc99599e37f04906ccef51fe04209
parent15047bd436a763dd2ddf8e1024b4e25af9cc11ee
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: 81875979f0b2 ("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