From 16d85564728d0a951c53345282633f9be7e3b9d9 Mon Sep 17 00:00:00 2001 From: Andrew Kaster Date: Sun, 31 Oct 2021 16:39:32 -0600 Subject: [PATCH] Kernel: Remove redundant return statement from Spinlock::lock() Also from RecursiveSpinlock::lock() --- Kernel/Arch/x86/Spinlock.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/Kernel/Arch/x86/Spinlock.h b/Kernel/Arch/x86/Spinlock.h index a807d66bd3..aaca62c01b 100644 --- a/Kernel/Arch/x86/Spinlock.h +++ b/Kernel/Arch/x86/Spinlock.h @@ -31,7 +31,6 @@ public: } track_lock_acquire(m_rank); return prev_flags; - return 0; } ALWAYS_INLINE void unlock(u32 prev_flags) @@ -90,7 +89,6 @@ public: track_lock_acquire(m_rank); m_recursions++; return prev_flags; - return 0; } ALWAYS_INLINE void unlock(u32 prev_flags)