From: Rex Zhu Date: Tue, 23 May 2017 05:16:09 +0000 (+0800) Subject: drm/amd/powerplay: delete duplicated code in vega10_hwmgr.c X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=781e263bffe7f4e7838acad630291b90b09c8614;p=openwrt%2Fstaging%2Fblogic.git drm/amd/powerplay: delete duplicated code in vega10_hwmgr.c Signed-off-by: Rex Zhu Signed-off-by: Alex Deucher --- 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;