summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c
diff options
context:
space:
mode:
authorTom Rix <trix@redhat.com>2023-01-26 12:49:35 -0800
committerAlex Deucher <alexander.deucher@amd.com>2023-02-03 15:38:15 -0500
commit1c6d24b8be0cbe8e9a573d069c16fe8a56af6a4f (patch)
tree51e424a877a4f3fa01c0f5222e68c5f03e62ae27 /drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c
parent67cdd3a5cc03591a98a303e5e2086a470650967f (diff)
drm/amd/display: reduce else-if to else in dcn32_calculate_dlg_params()
cppcheck reports drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c:1403:76: style: Expression is always true because 'else if' condition is opposite to previous condition at line 1396. [multiCondition] } else if (context->res_ctx.pipe_ctx[i].stream->mall_stream_config.type == SUBVP_PHANTOM) { ^ drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c:1396:69: note: first condition if (context->res_ctx.pipe_ctx[i].stream->mall_stream_config.type != SUBVP_PHANTOM) { ^ drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c:1403:76: note: else if condition is opposite to first condition } else if (context->res_ctx.pipe_ctx[i].stream->mall_stream_config.type == SUBVP_PHANTOM) { It is not necessary to explicitly the check != condition, an else is simplier. Fixes: 238debcaebe4 ("drm/amd/display: Use DML for MALL SS and Subvp allocation calculations") Signed-off-by: Tom Rix <trix@redhat.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c')
0 files changed, 0 insertions, 0 deletions