Commit 4ff8b596 authored by Stefan Lankes's avatar Stefan Lankes
Browse files

remoce compiler warnings

parent 8022cbc4
......@@ -171,7 +171,7 @@ impl<S: PageSize> Page<S> {
/// Although we could make this check depend on the actual linear address width from the CPU,
/// any extension above 48-bit would require a new page table level, which we don't implement.
fn is_valid_address(virtual_address: usize) -> bool {
(virtual_address < 0x8000_0000_0000 || virtual_address >= 0xFFFF_8000_0000_0000)
virtual_address < 0x8000_0000_0000 || virtual_address >= 0xFFFF_8000_0000_0000
}
/// Returns a Page including the given virtual address.
......
......@@ -42,7 +42,7 @@ impl SerialPort {
}
fn is_transmitting(&self) -> bool {
(self.read_from_register(UART_LSR) & UART_LSR_EMPTY_TRANSMITTER_HOLDING_REGISTER == 0)
self.read_from_register(UART_LSR) & UART_LSR_EMPTY_TRANSMITTER_HOLDING_REGISTER == 0
}
fn write_to_register(&self, register: u16, byte: u8) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment