drm/radeon: use true,false for bool variable in ni.c
authorzhengbin <zhengbin13@huawei.com>
Mon, 23 Dec 2019 09:25:52 +0000 (17:25 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 23 Dec 2019 20:00:00 +0000 (15:00 -0500)
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>
drivers/gpu/drm/radeon/ni.c

index a99442b2019b5d70c6c748b3041e864bb4e3f58e..02feb0801fd3077b0826827169db38360396ac2e 100644 (file)
@@ -2017,7 +2017,7 @@ static void cayman_uvd_init(struct radeon_device *rdev)
                 * there. So it is pointless to try to go through that code
                 * hence why we disable uvd here.
                 */
-               rdev->has_uvd = 0;
+               rdev->has_uvd = false;
                return;
        }
        rdev->ring[R600_RING_TYPE_UVD_INDEX].ring_obj = NULL;
@@ -2085,7 +2085,7 @@ static void cayman_vce_init(struct radeon_device *rdev)
                 * there. So it is pointless to try to go through that code
                 * hence why we disable vce here.
                 */
-               rdev->has_vce = 0;
+               rdev->has_vce = false;
                return;
        }
        rdev->ring[TN_RING_TYPE_VCE1_INDEX].ring_obj = NULL;