diff --git a/src/context/switch.rs b/src/context/switch.rs index 28b06965c9dc2236ba7a1ebccd63cf497297bae3..07024748bdb9bdc980c885579d3506793e05088e 100644 --- a/src/context/switch.rs +++ b/src/context/switch.rs @@ -42,7 +42,7 @@ pub unsafe fn switch() -> bool { } let check_context = |context: &mut Context| -> bool { - if context.cpu_id == None && cpu_id == 0 { + if context.cpu_id == None { context.cpu_id = Some(cpu_id); // println!("{}: take {} {}", cpu_id, context.id, ::core::str::from_utf8_unchecked(&context.name.lock())); }