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 cik.c

Fixes coccicheck warning:

drivers/gpu/drm/radeon/cik.c:8140:2-15: WARNING: Assignment of 0/1 to bool variable
drivers/gpu/drm/radeon/cik.c:8212: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
45b2de28 1f6e717c

+2 -2
+2 -2
drivers/gpu/drm/radeon/cik.c
··· 8137 8137 * there. So it is pointless to try to go through that code 8138 8138 * hence why we disable uvd here. 8139 8139 */ 8140 - rdev->has_uvd = 0; 8140 + rdev->has_uvd = false; 8141 8141 return; 8142 8142 } 8143 8143 rdev->ring[R600_RING_TYPE_UVD_INDEX].ring_obj = NULL; ··· 8209 8209 * there. So it is pointless to try to go through that code 8210 8210 * hence why we disable vce here. 8211 8211 */ 8212 - rdev->has_vce = 0; 8212 + rdev->has_vce = false; 8213 8213 return; 8214 8214 } 8215 8215 rdev->ring[TN_RING_TYPE_VCE1_INDEX].ring_obj = NULL;