diff options
| author | Fabian Imhof <fabian.imhof@ost.ch> | 2024-10-20 08:14:54 +0000 |
|---|---|---|
| committer | Fabian Imhof <fabian.imhof@ost.ch> | 2024-10-20 08:14:54 +0000 |
| commit | fba2fc4ce3d4bf4997eb42c9b5b2ac1de8692150 (patch) | |
| tree | 9d152ec3523423b7bee0fc33399bab42c4a625c2 /arch/x86_64/include | |
| parent | 7bfa4740598ed8ffe1012e6683f9d814400ba1ca (diff) | |
| download | teachos-fba2fc4ce3d4bf4997eb42c9b5b2ac1de8692150.tar.xz teachos-fba2fc4ce3d4bf4997eb42c9b5b2ac1de8692150.zip | |
remove faulty if statement
Diffstat (limited to 'arch/x86_64/include')
| -rw-r--r-- | arch/x86_64/include/arch/memory/paging/virtual_page.hpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/x86_64/include/arch/memory/paging/virtual_page.hpp b/arch/x86_64/include/arch/memory/paging/virtual_page.hpp index 1ba0f7c..46140ff 100644 --- a/arch/x86_64/include/arch/memory/paging/virtual_page.hpp +++ b/arch/x86_64/include/arch/memory/paging/virtual_page.hpp @@ -87,10 +87,7 @@ namespace teachos::arch::memory::paging std::size_t level1_index = page.get_level_index(page_table::LEVEL1); std::optional<allocator::physical_frame> frame = page_table[level1_index].calculate_pointed_to_frame(); - if (frame.has_value()) - { - return frame; - } + return frame; } } } |
