OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1bd9c93
)
drm/amdgpu/uvd7: remove unnecessary conversion to bool
author
Chen Zhou
<chenzhou10@huawei.com>
Wed, 25 Mar 2020 02:32:50 +0000
(10:32 +0800)
committer
Alex Deucher
<alexander.deucher@amd.com>
Wed, 1 Apr 2020 18:44:43 +0000
(14:44 -0400)
The conversion to bool is not needed, remove it.
Signed-off-by: Chen Zhou <chenzhou10@huawei.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c
b/drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c
index
0995378
..
20f10a5
100644
(file)
--- a/
drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c
+++ b/
drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c
@@
-1694,7
+1694,7
@@
static int uvd_v7_0_set_clockgating_state(void *handle,
enum amd_clockgating_state state)
{
struct amdgpu_device *adev = (struct amdgpu_device *)handle;
- bool enable = (state == AMD_CG_STATE_GATE)
? true : false
;
+ bool enable = (state == AMD_CG_STATE_GATE);
uvd_v7_0_set_bypass_mode(adev, enable);