diff options
author | zhengbin <zhengbin13@huawei.com> | 2019-12-23 10:25:50 +0100 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2019-12-23 20:59:59 +0100 |
commit | 1f6e717c219ad3a584c5e13ba31e89240862679d (patch) | |
tree | 7b93a872ef46850808fbbb8a821b03c34d0e16ec | |
parent | drm/radeon: use true, false for bool variable in evergreen.c (diff) | |
download | linux-1f6e717c219ad3a584c5e13ba31e89240862679d.tar.xz linux-1f6e717c219ad3a584c5e13ba31e89240862679d.zip |
drm/radeon: use true,false for bool variable in rv770.c
Fixes coccicheck warning:
drivers/gpu/drm/radeon/rv770.c:1706: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>
-rw-r--r-- | drivers/gpu/drm/radeon/rv770.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/rv770.c b/drivers/gpu/drm/radeon/rv770.c index 3fc461defeeb..21f653ae1e1b 100644 --- a/drivers/gpu/drm/radeon/rv770.c +++ b/drivers/gpu/drm/radeon/rv770.c @@ -1703,7 +1703,7 @@ static void rv770_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; |