From d26aabff0401690d6dd1332558b40f5cb64e4428 Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Mon, 17 Oct 2022 00:06:11 +0200 Subject: Everywhere: Run clang-format --- Kernel/IOWindow.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Kernel/IOWindow.cpp') diff --git a/Kernel/IOWindow.cpp b/Kernel/IOWindow.cpp index fd0920d78c..69e3a015ea 100644 --- a/Kernel/IOWindow.cpp +++ b/Kernel/IOWindow.cpp @@ -53,7 +53,7 @@ ErrorOr> IOWindow::create_from_io_window_with_offset(u64 return Error::from_errno(EOVERFLOW); #endif - auto memory_mapped_range = TRY(Memory::adopt_new_nonnull_own_typed_mapping(m_memory_mapped_range->paddr.offset(offset), space_length, Memory::Region::Access::ReadWrite)); + auto memory_mapped_range = TRY(Memory::adopt_new_nonnull_own_typed_mapping(m_memory_mapped_range->paddr.offset(offset), space_length, Memory::Region::Access::ReadWrite)); return TRY(adopt_nonnull_own_or_enomem(new (nothrow) IOWindow(move(memory_mapped_range)))); } @@ -110,7 +110,7 @@ ErrorOr> IOWindow::create_for_pci_device_bar(PCI::Addres return Error::from_errno(EOVERFLOW); if (pci_bar_space_type == PCI::BARSpaceType::Memory64BitSpace && Checked::addition_would_overflow(pci_bar_value, space_length)) return Error::from_errno(EOVERFLOW); - auto memory_mapped_range = TRY(Memory::adopt_new_nonnull_own_typed_mapping(PhysicalAddress(pci_bar_value & 0xfffffff0), space_length, Memory::Region::Access::ReadWrite)); + auto memory_mapped_range = TRY(Memory::adopt_new_nonnull_own_typed_mapping(PhysicalAddress(pci_bar_value & 0xfffffff0), space_length, Memory::Region::Access::ReadWrite)); return TRY(adopt_nonnull_own_or_enomem(new (nothrow) IOWindow(move(memory_mapped_range)))); } @@ -131,7 +131,7 @@ ErrorOr> IOWindow::create_for_pci_device_bar(PCI::Device return create_for_pci_device_bar(pci_device_identifier.address(), pci_bar, space_length); } -IOWindow::IOWindow(NonnullOwnPtr> memory_mapped_range) +IOWindow::IOWindow(NonnullOwnPtr> memory_mapped_range) : m_space_type(SpaceType::Memory) , m_memory_mapped_range(move(memory_mapped_range)) { -- cgit v1.2.3