drm/amd/display: Simplify bool conversion
The result of 'pwr_status == 0' is Boolean, and the question mark expression is redundant. Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=2354 Reported-by: Abaci Robot <abaci@linux.alibaba.com> Reviewed-by: Harry Wentland <harry.wentland@amd.com> Signed-off-by: Yang Li <yang.lee@linux.alibaba.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
Родитель
a895014853
Коммит
1f768ba469
|
@ -1400,7 +1400,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,
|
||||
|
|
Загрузка…
Ссылка в новой задаче