projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
68e2c5f
)
drm/amd/powerplay: delete duplicated code in vega10_hwmgr.c
author
Rex Zhu
<Rex.Zhu@amd.com>
Tue, 23 May 2017 05:16:09 +0000
(13:16 +0800)
committer
Alex Deucher
<alexander.deucher@amd.com>
Wed, 24 May 2017 22:24:57 +0000
(18:24 -0400)
Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c
b/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c
index f0c3a8bc1e116e4a959aaf418989ba56028fbacb..fd52f07c1fe144c55ef3bcd1559d3d548bbd6ba1 100644
(file)
--- a/
drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c
+++ b/
drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c
@@
-4286,11
+4286,6
@@
static int vega10_force_clock_level(struct pp_hwmgr *hwmgr,
break;
case PP_MCLK:
- for (i = 0; i < 32; i++) {
- if (mask & (1 << i))
- break;
- }
-
for (i = 0; i < 32; i++) {
if (mask & (1 << i))
break;