diff options
author | Srinivasan Shanmugam <[email protected]> | 2024-02-24 09:23:53 +0530 |
---|---|---|
committer | Alex Deucher <[email protected]> | 2024-03-20 13:38:14 -0400 |
commit | a43dbeaba81eb645a12a004c67722c632ed0d94b (patch) | |
tree | 07850356b3c43970a7af0df00b6482549689337d /drivers/gpu/drm/amd/amdgpu/amdgpu_aca.c | |
parent | db6200a50a5a3900bb2bca992e02922d98ad5742 (diff) |
drm/amd/display: Remove redundant condition in dcn35_calc_blocks_to_gate()
pipe_ctx->plane_res.mpcc_inst is of a type that can only hold values
between 0 and 255, so it's always greater than or equal to 0.
Thus the condition 'pipe_ctx->plane_res.mpcc_inst >= 0' was always true
and has been removed.
Fixes the below:
drivers/gpu/drm/amd/amdgpu/../display/dc/hwss/dcn35/dcn35_hwseq.c:1023 dcn35_calc_blocks_to_gate() warn: always true condition '(pipe_ctx->plane_res.mpcc_inst >= 0) => (0-255 >= 0)'
Fixes: 6f8b7565cca4 ("drm/amd/display: Add DCN35 HWSEQ")
Cc: Qingqing Zhuo <[email protected]>
Cc: Harry Wentland <[email protected]>
Cc: Rodrigo Siqueira <[email protected]>
Cc: Roman Li <[email protected]>
Cc: Aurabindo Pillai <[email protected]>
Cc: Tom Chung <[email protected]>
Signed-off-by: Srinivasan Shanmugam <[email protected]>
Reviewed-by: Rodrigo Siqueira <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_aca.c')
0 files changed, 0 insertions, 0 deletions