summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/display/dc/dcn201
diff options
context:
space:
mode:
authorGuo Zhengkui <guozhengkui@vivo.com>2022-04-24 12:06:23 +0300
committerAlex Deucher <alexander.deucher@amd.com>2022-04-26 18:51:20 +0300
commite6eb2c5f78cfd5d25aa108c576b30bc1869f7177 (patch)
treedde7c96313a5a968fdbb71e8d3e9cd1ca6a23013 /drivers/gpu/drm/amd/display/dc/dcn201
parent0bed2ace42841bdffedecafa13b2380e085301cb (diff)
downloadlinux-e6eb2c5f78cfd5d25aa108c576b30bc1869f7177.tar.xz
drm/amd/display: fix if == else warning
Fix the following coccicheck warning: drivers/gpu/drm/amd/display/dc/dcn201/dcn201_hwseq.c:98:8-10: WARNING: possible condition with no effect (if == else) Reviewed-by: Zhan Liu <zhan.liu@amd.com> Signed-off-by: Guo Zhengkui <guozhengkui@vivo.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/dcn201')
-rw-r--r--drivers/gpu/drm/amd/display/dc/dcn201/dcn201_hwseq.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dcn201/dcn201_hwseq.c b/drivers/gpu/drm/amd/display/dc/dcn201/dcn201_hwseq.c
index fe22530242d2..05b3fba9ccce 100644
--- a/drivers/gpu/drm/amd/display/dc/dcn201/dcn201_hwseq.c
+++ b/drivers/gpu/drm/amd/display/dc/dcn201/dcn201_hwseq.c
@@ -95,8 +95,6 @@ static void gpu_addr_to_uma(struct dce_hwseq *hwseq,
} else if (hwseq->fb_offset.quad_part <= addr->quad_part &&
addr->quad_part <= hwseq->uma_top.quad_part) {
is_in_uma = true;
- } else if (addr->quad_part == 0) {
- is_in_uma = false;
} else {
is_in_uma = false;
}