]> git.baikalelectronics.ru Git - uboot.git/commit
x86: remove dead code in intel_clk_get_rate()
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Sat, 15 Feb 2020 20:22:00 +0000 (21:22 +0100)
committerBin Meng <bmeng.cn@gmail.com>
Thu, 5 Mar 2020 10:19:40 +0000 (18:19 +0800)
commit6ad3d293f528e991eb1e5cb1649eb957aac4f83c
treebc2fa44aff8cb0ead641af2425d8873eae64277a
parentfff2a83ced5ebe3f0f2f3d796758a7efc554fc5d
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: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Lukasz Majewski <lukma@denx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/clk/intel/clk_intel.c