drm/amd/display: Remove useless else if
authorJiapeng Chong <jiapeng.chong@linux.alibaba.com>
Thu, 12 Jan 2023 03:20:49 +0000 (11:20 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 13 Jan 2023 19:54:35 +0000 (14:54 -0500)
commit35a45d630359bf9bcbeb612073c7869afb944436
treef26a77348d5f58069646f6336a95893fb41f611f
parent3e5019ee67760cd61b2a5fd605e1289c2f92d983
drm/amd/display: Remove useless else if

The assignment of the else and if branches is the same, so the if else
here is redundant, so we remove it.

./drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c:1951:2-4: WARNING: possible condition with no effect (if == else).

Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=3719
Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c