mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-04 18:19:28 +09:00
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>
This commit is contained in:
committed by
Alex Deucher
parent
0bed2ace42
commit
e6eb2c5f78
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user