mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-25 10:48:53 +00:00
Kernel: Remove unused fd allocation from Process::sys$connect(..)
This commit is contained in:
parent
9252addf55
commit
d2cee9cbf6
Notes:
sideshowbarker
2024-07-18 07:59:42 +09:00
Author: https://github.com/bgianfo
Commit: d2cee9cbf6
Pull-request: https://github.com/SerenityOS/serenity/pull/9034
Reviewed-by: https://github.com/awesomekling
Reviewed-by: https://github.com/gunnarbeutner
1 changed files with 0 additions and 3 deletions
|
@ -153,9 +153,6 @@ KResultOr<FlatPtr> Process::sys$accept4(Userspace<const Syscall::SC_accept4_para
|
|||
KResultOr<FlatPtr> Process::sys$connect(int sockfd, Userspace<const sockaddr*> user_address, socklen_t user_address_size)
|
||||
{
|
||||
VERIFY_PROCESS_BIG_LOCK_ACQUIRED(this)
|
||||
int fd = m_fds.allocate();
|
||||
if (fd < 0)
|
||||
return fd;
|
||||
auto description = fds().file_description(sockfd);
|
||||
if (!description)
|
||||
return EBADF;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue