summaryrefslogtreecommitdiffstats
path: root/kernel/cpu.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/cpu.c')
-rw-r--r--kernel/cpu.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/kernel/cpu.c b/kernel/cpu.c
index 93e9d89bb0ab..373e831e0faa 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;
}