summaryrefslogtreecommitdiff
path: root/Kernel/Syscalls
diff options
context:
space:
mode:
authorIdan Horowitz <idan.horowitz@gmail.com>2022-07-13 09:31:24 +0300
committerAndreas Kling <kling@serenityos.org>2022-07-21 16:39:22 +0200
commit364f6a9bf0e53fa9a6d2afd0b70b915e94203450 (patch)
tree888fdbec9072ce37287ac1cf4ee68a3480f2f5e9 /Kernel/Syscalls
parent2aaaee6744dfa9fb8dd64c00ac5efc520ebae368 (diff)
downloadserenity-364f6a9bf0e53fa9a6d2afd0b70b915e94203450.zip
Kernel: Remove the Socket::{protocol,}connect ShouldBlock argument
This argument is always set to description.is_blocking(), but description is also given as a separate argument, so there's no point to piping it through separately.
Diffstat (limited to 'Kernel/Syscalls')
-rw-r--r--Kernel/Syscalls/socket.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Syscalls/socket.cpp b/Kernel/Syscalls/socket.cpp
index c3a3c859eb..1689b04ea1 100644
--- a/Kernel/Syscalls/socket.cpp
+++ b/Kernel/Syscalls/socket.cpp
@@ -152,7 +152,7 @@ ErrorOr<FlatPtr> Process::sys$connect(int sockfd, Userspace<sockaddr const*> use
return ENOTSOCK;
auto& socket = *description->socket();
REQUIRE_PROMISE_FOR_SOCKET_DOMAIN(socket.domain());
- TRY(socket.connect(*description, user_address, user_address_size, description->is_blocking() ? ShouldBlock::Yes : ShouldBlock::No));
+ TRY(socket.connect(*description, user_address, user_address_size));
return 0;
}