Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/radeon: use true,false for bool variable in si.c

Fixes coccicheck warning:

drivers/gpu/drm/radeon/si.c:6475:2-15: WARNING: Assignment of 0/1 to bool variable
drivers/gpu/drm/radeon/si.c:6542:2-15: WARNING: Assignment of 0/1 to bool variable

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: zhengbin <zhengbin13@huawei.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

zhengbin and committed by
Alex Deucher
43302df9 7bf2f607

+2 -2
+2 -2
drivers/gpu/drm/radeon/si.c
··· 6472 6472 * there. So it is pointless to try to go through that code 6473 6473 * hence why we disable uvd here. 6474 6474 */ 6475 - rdev->has_uvd = 0; 6475 + rdev->has_uvd = false; 6476 6476 return; 6477 6477 } 6478 6478 rdev->ring[R600_RING_TYPE_UVD_INDEX].ring_obj = NULL; ··· 6539 6539 * there. So it is pointless to try to go through that code 6540 6540 * hence why we disable vce here. 6541 6541 */ 6542 - rdev->has_vce = 0; 6542 + rdev->has_vce = false; 6543 6543 return; 6544 6544 } 6545 6545 rdev->ring[TN_RING_TYPE_VCE1_INDEX].ring_obj = NULL;