From 103c785e572baf47ef658850a3e1adc2a79ad9c0 Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Thu, 3 Mar 2016 12:24:10 +0100 Subject: [PATCH] cpu/hotplug: Remove redundant state check The check for the AP range in cpuhp_is_ap_state() is redundant after commit 138ca831ca25 "cpu/hotplug: Let upcoming cpu bring itself fully up" because all states above CPUHP_BRINGUP_CPU are invoked on the hotplugged cpu. Remove it. Reported-by: Richard Cochran Signed-off-by: Thomas Gleixner --- kernel/cpu.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/kernel/cpu.c b/kernel/cpu.c index 93e9d89bb0ab8..373e831e0faa4 100644 --- a/kernel/cpu.c +++ b/kernel/cpu.c @@ -1231,8 +1231,6 @@ static int cpuhp_cb_check(enum cpuhp_state state) static bool cpuhp_is_ap_state(enum cpuhp_state state) { - if (state >= CPUHP_AP_OFFLINE && state <= CPUHP_AP_ONLINE) - return true; return state > CPUHP_BRINGUP_CPU; } -- 2.39.5