]> git.baikalelectronics.ru Git - uboot.git/commit
x86: tsc: Remove the fail handling in try_msr_calibrate_tsc()
authorBin Meng <bmeng.cn@gmail.com>
Wed, 26 Jul 2017 03:12:02 +0000 (20:12 -0700)
committerBin Meng <bmeng.cn@gmail.com>
Tue, 1 Aug 2017 12:17:02 +0000 (20:17 +0800)
commit829908a7db9659df3935e042264cc0827e5f0d4e
treec279116b7f7987d3f1f32073ed235e7b617ea65f
parent5fbcbc8cff4052bb0a659400d3d532d30fc32dad
x86: tsc: Remove the fail handling in try_msr_calibrate_tsc()

If either ratio or freq is zero, the return value is zero. There
is no need to create a fail branch and return zero there.

This keeps in sync with Linux kernel commit:
  14bb4e3: x86/tsc_msr: Remove debugging messages

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/timer/tsc_timer.c