From 781e263bffe7f4e7838acad630291b90b09c8614 Mon Sep 17 00:00:00 2001 From: Rex Zhu Date: Tue, 23 May 2017 13:16:09 +0800 Subject: [PATCH] drm/amd/powerplay: delete duplicated code in vega10_hwmgr.c Signed-off-by: Rex Zhu Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c b/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c index f0c3a8bc1e11..fd52f07c1fe1 100644 --- 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; -- 2.30.2