]> git.karo-electronics.de Git - linux-beck.git/commitdiff
x86/platform/intel/mid: Remove dead code
authorAlan <gnomes@lxorguk.ukuu.org.uk>
Wed, 17 Feb 2016 14:10:15 +0000 (14:10 +0000)
committerIngo Molnar <mingo@kernel.org>
Wed, 17 Feb 2016 17:00:15 +0000 (18:00 +0100)
Neither ratio nor fsb are ever zero, so remove the 0 case.

Signed-off-by: Alan Cox <alan@linux.intel.com>
Cc: Borislav Petkov <bp@alien8.de>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/platform/intel-mid/mfld.c
arch/x86/platform/intel-mid/mrfl.c

index 23381d2174ae1d4d2795ebf9a568ff7e43cf8876..1eb47b6298c20fc20ae6de0c2f9f3762854286cc 100644 (file)
@@ -52,10 +52,7 @@ static unsigned long __init mfld_calibrate_tsc(void)
        /* mark tsc clocksource as reliable */
        set_cpu_cap(&boot_cpu_data, X86_FEATURE_TSC_RELIABLE);
 
-       if (fast_calibrate)
-               return fast_calibrate;
-
-       return 0;
+       return fast_calibrate;
 }
 
 static void __init penwell_arch_setup(void)
index aaca91753d3267b94a98af40f7b66f8b5cbbb21c..bd1adc621781117b8044e555509239ee4328247f 100644 (file)
@@ -81,10 +81,7 @@ static unsigned long __init tangier_calibrate_tsc(void)
        /* mark tsc clocksource as reliable */
        set_cpu_cap(&boot_cpu_data, X86_FEATURE_TSC_RELIABLE);
 
-       if (fast_calibrate)
-               return fast_calibrate;
-
-       return 0;
+       return fast_calibrate;
 }
 
 static void __init tangier_arch_setup(void)