drm:dcn31: fix boolreturn.cocci warnings
authorJing Yangyang <jing.yangyang@zte.com.cn>
Tue, 24 Aug 2021 05:52:32 +0000 (22:52 -0700)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 30 Aug 2021 18:59:33 +0000 (14:59 -0400)
commitfbd2a6003a259fe12750ceb5efc47432c3cc7ce4
treea3667e335d2272ad789753134c877b119c13f58c
parent8f0284f190e6a0aa09015090568c03f18288231a
drm:dcn31: fix boolreturn.cocci warnings

./drivers/gpu/drm/amd/display/dc/dcn31/dcn31_panel_cntl.c:112:9-10:WARNING:
return of 0/1 in function 'dcn31_is_panel_backlight_on'
with return type bool

./drivers/gpu/drm/amd/display/dc/dcn31/dcn31_panel_cntl.c:122:9-10:WARNING:
return of 0/1 in function 'dcn31_is_panel_powered_on'
with return type bool

Return statements in functions returning bool should use true/false
instead of 1/0.

Generated by: scripts/coccinelle/misc/boolreturn.cocci

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Jing Yangyang <jing.yangyang@zte.com.cn>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn31/dcn31_panel_cntl.c