Skip to content
Snippets Groups Projects
Commit 38a2a48c authored by Heinrich Schuchardt's avatar Heinrich Schuchardt Committed by Bin Meng
Browse files

x86: remove dead code in intel_clk_get_rate()


If all branches of a switch statement have a return instruction, all
subsequent lines are unreachable.

Identified with cppcheck.

Signed-off-by: default avatarHeinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: default avatarLukasz Majewski <lukma@denx.de>
Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
parent e98ea49a
No related branches found
No related tags found
No related merge requests found
......@@ -11,8 +11,6 @@
static ulong intel_clk_get_rate(struct clk *clk)
{
ulong rate;
switch (clk->id) {
case CLK_I2C:
/* Hard-coded to 133MHz on current platforms */
......@@ -20,8 +18,6 @@ static ulong intel_clk_get_rate(struct clk *clk)
default:
return -ENODEV;
}
return rate;
}
static struct clk_ops intel_clk_ops = {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment