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

Fixes coccicheck warning:

drivers/gpu/drm/radeon/ni.c:2020:2-15: WARNING: Assignment of 0/1 to bool variable
drivers/gpu/drm/radeon/ni.c:2088: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
ab2c1ea4 45b2de28

+2 -2
+2 -2
drivers/gpu/drm/radeon/ni.c
··· 2017 2017 * there. So it is pointless to try to go through that code 2018 2018 * hence why we disable uvd here. 2019 2019 */ 2020 - rdev->has_uvd = 0; 2020 + rdev->has_uvd = false; 2021 2021 return; 2022 2022 } 2023 2023 rdev->ring[R600_RING_TYPE_UVD_INDEX].ring_obj = NULL; ··· 2085 2085 * there. So it is pointless to try to go through that code 2086 2086 * hence why we disable vce here. 2087 2087 */ 2088 - rdev->has_vce = 0; 2088 + rdev->has_vce = false; 2089 2089 return; 2090 2090 } 2091 2091 rdev->ring[TN_RING_TYPE_VCE1_INDEX].ring_obj = NULL;