summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/cons/cons.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/dev/cons/cons.c b/sys/dev/cons/cons.c
index 7407ec1..88cbcbe 100644
--- a/sys/dev/cons/cons.c
+++ b/sys/dev/cons/cons.c
@@ -375,7 +375,6 @@ dev_read(dev_t dev, struct sio_txn *sio, int flags)
}
cons_attach();
- spinlock_acquire(&g_root_scr.lock);
for (;;) {
/* Buffer too small */
if (n == 0) {
@@ -392,7 +391,6 @@ dev_read(dev_t dev, struct sio_txn *sio, int flags)
break;
}
}
- spinlock_release(&g_root_scr.lock);
return sio->len;
}