Commit 43302df9 authored by zhengbin's avatar zhengbin Committed by Alex Deucher

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: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarzhengbin <zhengbin13@huawei.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 7bf2f607
...@@ -6472,7 +6472,7 @@ static void si_uvd_init(struct radeon_device *rdev) ...@@ -6472,7 +6472,7 @@ static void si_uvd_init(struct radeon_device *rdev)
* there. So it is pointless to try to go through that code * there. So it is pointless to try to go through that code
* hence why we disable uvd here. * hence why we disable uvd here.
*/ */
rdev->has_uvd = 0; rdev->has_uvd = false;
return; return;
} }
rdev->ring[R600_RING_TYPE_UVD_INDEX].ring_obj = NULL; rdev->ring[R600_RING_TYPE_UVD_INDEX].ring_obj = NULL;
...@@ -6539,7 +6539,7 @@ static void si_vce_init(struct radeon_device *rdev) ...@@ -6539,7 +6539,7 @@ static void si_vce_init(struct radeon_device *rdev)
* there. So it is pointless to try to go through that code * there. So it is pointless to try to go through that code
* hence why we disable vce here. * hence why we disable vce here.
*/ */
rdev->has_vce = 0; rdev->has_vce = false;
return; return;
} }
rdev->ring[TN_RING_TYPE_VCE1_INDEX].ring_obj = NULL; rdev->ring[TN_RING_TYPE_VCE1_INDEX].ring_obj = NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment