diff options
-rw-r--r-- | sys/kern/kern_shutdown.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/kern/kern_shutdown.c b/sys/kern/kern_shutdown.c index 5e192b9..3d96321 100644 --- a/sys/kern/kern_shutdown.c +++ b/sys/kern/kern_shutdown.c @@ -516,8 +516,7 @@ panic(const char *fmt, ...) va_list ap; static char buf[256]; - if (td) - critical_enter(); + critical_enter(); #ifdef SMP /* * We don't want multiple CPU's to panic at the same time, so we @@ -576,8 +575,7 @@ panic(const char *fmt, ...) /* thread_unlock(td); */ if (!sync_on_panic) bootopt |= RB_NOSYNC; - if (td) - critical_exit(); + critical_exit(); boot(bootopt); } |