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-Tag: Ubuntu-5.0.0-8.9~4506^2~20^2~152 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=781e263bffe7f4e7838acad630291b90b09c8614;p=mirror_ubuntu-disco-kernel.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;