From e19c8879eb7732d3bcb62194065c9cb2892cf1ab Mon Sep 17 00:00:00 2001 From: Dennis Kobert Date: Thu, 7 Nov 2019 16:04:32 +0100 Subject: Minor Cleanups --- kernel/src/io/serial.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'kernel/src/io') 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) -- cgit v1.2.3-70-g09d2