mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-05 18:13:26 -04:00
drm/amd/pm: remove dead code in navi10_emit_clk_levels and navi10_print_clk_levels
Since the range of the varibable i is 0 - 3. So execution cannot reach this statement: default. Signed-off-by: Jesse Zhang <Jesse.Zhang@amd.com> Reviewed-by: Yang Wang <kevinyang.wang@amd.com> Reviewed-by: Tim Huang <Tim.Huang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
committed by
Alex Deucher
parent
27b500b77b
commit
839eb4bbbd
@@ -1389,8 +1389,6 @@ static int navi10_emit_clk_levels(struct smu_context *smu,
|
||||
case 2:
|
||||
curve_settings = &od_table->GfxclkFreq3;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
*offset += sysfs_emit_at(buf, *offset, "%d: %uMHz %umV\n",
|
||||
i, curve_settings[0],
|
||||
@@ -1594,8 +1592,6 @@ static int navi10_print_clk_levels(struct smu_context *smu,
|
||||
case 2:
|
||||
curve_settings = &od_table->GfxclkFreq3;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
size += sysfs_emit_at(buf, size, "%d: %uMHz %umV\n",
|
||||
i, curve_settings[0],
|
||||
|
||||
Reference in New Issue
Block a user