diff options
Diffstat (limited to 'kernel/src/io')
-rw-r--r-- | kernel/src/io/serial.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/kernel/src/io/serial.rs b/kernel/src/io/serial.rs index 2a3bae8..eb9377c 100644 --- a/kernel/src/io/serial.rs +++ b/kernel/src/io/serial.rs @@ -32,9 +32,7 @@ impl core::fmt::Write for SerialStream { fn write_str(&mut self, s: &str) -> core::fmt::Result { let mut guard = CONNECTION.lock(); if !guard.initialized { - unsafe { - guard.port.init(); - } + guard.port.init(); guard.initialized = true; } guard.port.write_str(s) |