drm/amd/display: Simplify bool conversion
Subsystems (3)
PATCH 1/1 drm/amd/display: Simplify bool conversion
The result of 'pwr_status == 0' is Boolean, and the question mark expression is redundant.
Reported-by Abaci Robot <[email protected]>
Signed-off-by Yang Li <[email protected]>
--- drivers/gpu/drm/amd/display/dc/dcn32/dcn32_hwseq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/display/dc/dcn32/dcn32_hwseq.c +1 -1
@@ -1401,7 +1401,7 @@ bool dcn32_dsc_pg_status(break ; } -return pwr_status ==0 ? true : false; +return pwr_status ==0 ; } void dcn32_update_dsc_pg(struct dc *dc,
Signature · 1 line
2.20.1.7.g153144c
Quoted 6 lines · Yang Li
The result of '
pwr_status== 0' is Boolean, and the question mark expression is redundant.Reported-by Abaci Robot <[email protected]>Signed-off-by Yang Li <[email protected]>
Reviewed-by Harry Wentland <[email protected]>
Harry
Quoted 17 lines
--- drivers/gpu/drm/amd/display/dc/dcn32/dcn32_hwseq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/amd/display/dc/dcn32/dcn32_hwseq.c +1
-1@@ -1401,7 +1401,7 @@ bool dcn32_dsc_pg_status(break ; } -return pwr_status ==0 ? true : false; +return pwr_status ==0 ; } void dcn32_update_dsc_pg(struct dc *dc,
Alex Deucher
AppliedApplied. Thanks!
Alex
Quoted 31 lines · Harry Wentland
Quoted 6 lines · Yang Li
The result of '
pwr_status== 0' is Boolean, and the question mark expression is redundant.Reported-by Abaci Robot <[email protected]>Signed-off-by Yang Li <[email protected]>Reviewed-by Harry Wentland <[email protected]>Harry
Quoted 17 lines
--- drivers/gpu/drm/amd/display/dc/dcn32/dcn32_hwseq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/amd/display/dc/dcn32/dcn32_hwseq.c +1
-1@@ -1401,7 +1401,7 @@ bool dcn32_dsc_pg_status(break ; } -return pwr_status ==0 ? true : false; +return pwr_status ==0 ; } void dcn32_update_dsc_pg(struct dc *dc,