drm/amd/powerplay: delete duplicated code in vega10_hwmgr.c
authorRex Zhu <Rex.Zhu@amd.com>
Tue, 23 May 2017 05:16:09 +0000 (13:16 +0800)
committerAlex 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

index f0c3a8bc1e116e4a959aaf418989ba56028fbacb..fd52f07c1fe144c55ef3bcd1559d3d548bbd6ba1 100644 (file)
@@ -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;