chore: clean up ternary

main
Sean McBride 4 years ago
parent 3bfb3859c1
commit bd584b164c

@ -51,7 +51,8 @@ static __thread bool worker_thread_is_in_callback;
static inline void static inline void
worker_thread_switch_to_sandbox(struct sandbox *next_sandbox) worker_thread_switch_to_sandbox(struct sandbox *next_sandbox)
{ {
arch_context_t *next_register_context = next_sandbox == NULL ? NULL : &next_sandbox->ctxt; arch_context_t *next_register_context = NULL;
if (next_sandbox != NULL) next_register_context = &next_sandbox->ctxt;
software_interrupt_disable(); software_interrupt_disable();

Loading…
Cancel
Save