]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Simplify bool conversion
authorYang Li <yang.lee@linux.alibaba.com>
Mon, 10 Oct 2022 07:38:03 +0000 (15:38 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 11 Oct 2022 15:58:42 +0000 (11:58 -0400)
commit1fa3a2b6b41c29e830e30995ffbb576454c9b01d
tree514f824ae2c80d8dba556f4b23411d2361fcdce7
parent69011ced42985792014ffe49d1446d09c56519dd
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>
drivers/gpu/drm/amd/display/dc/dcn32/dcn32_hwseq.c