mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:18:11 +00:00
Kernel: Fix handful of remaining "return -EFOO" mistakes
Now that all KResult and KResultOr are used consistently throughout the kernel, it's no longer necessary to return negative error codes. However, we were still doing that in some places, so let's fix all those (bugs) by removing the minuses. :^)
This commit is contained in:
parent
3377cc74df
commit
ad3ae7e0e8
8 changed files with 10 additions and 10 deletions
|
@ -298,7 +298,7 @@ KResultOr<size_t> IPv4Socket::receive_packet_buffered(FileDescription& descripti
|
|||
ReceivedPacket packet;
|
||||
{
|
||||
if (m_receive_queue.is_empty()) {
|
||||
// FIXME: Shouldn't this return -ENOTCONN instead of EOF?
|
||||
// FIXME: Shouldn't this return ENOTCONN instead of EOF?
|
||||
// But if so, we still need to deliver at least one EOF read to userspace.. right?
|
||||
if (protocol_is_disconnected())
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue