From f27a660a6accf37f0cd35b97103a16e6e20fda91 Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Fri, 27 Aug 2021 19:02:20 -0400 Subject: [PATCH] kernel: Style fixup. --- headers/private/kernel/syscall_restart.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/headers/private/kernel/syscall_restart.h b/headers/private/kernel/syscall_restart.h index bcccb2f1d6..fd9d93879b 100644 --- a/headers/private/kernel/syscall_restart.h +++ b/headers/private/kernel/syscall_restart.h @@ -50,7 +50,7 @@ syscall_restart_handle_timeout_pre(uint32& flags, bigtime_t& timeout) timeout = *(bigtime_t*)thread->syscall_restart.parameters; if (timeout > 0 && (flags & B_RELATIVE_TIMEOUT) != 0) flags = (flags & ~B_RELATIVE_TIMEOUT) | B_ABSOLUTE_TIMEOUT; - } else if ((flags & B_RELATIVE_TIMEOUT)) { + } else if ((flags & B_RELATIVE_TIMEOUT) != 0) { if (timeout > 0 && timeout < B_INFINITE_TIMEOUT) { timeout += system_time(); // deal with overflow