summaryrefslogtreecommitdiffstats
path: root/sys/pc98/cbus
diff options
context:
space:
mode:
Diffstat (limited to 'sys/pc98/cbus')
-rw-r--r--sys/pc98/cbus/sio.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/sys/pc98/cbus/sio.c b/sys/pc98/cbus/sio.c
index d009864..297f61d 100644
--- a/sys/pc98/cbus/sio.c
+++ b/sys/pc98/cbus/sio.c
@@ -3763,20 +3763,16 @@ siocnputc(struct consdev *cd, int c)
}
s = spltty();
need_unlock = 0;
- if (!kdb_active) {
- if (sio_inited == 2 && !mtx_owned(&sio_lock)) {
- mtx_lock_spin(&sio_lock);
- need_unlock = 1;
- }
+ if (!kdb_active && sio_inited == 2 && !mtx_owned(&sio_lock)) {
+ mtx_lock_spin(&sio_lock);
+ need_unlock = 1;
}
siocnopen(&sp, iobase, speed);
siocntxwait(iobase);
outb(iobase + com_data, c);
siocnclose(&sp, iobase);
- if (!kdb_active) {
- if (need_unlock)
- mtx_unlock_spin(&sio_lock);
- }
+ if (need_unlock)
+ mtx_unlock_spin(&sio_lock);
splx(s);
}
OpenPOWER on IntegriCloud