mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-04 15:45:25 +00:00
Kernel: Remove KBuffer::try_copy() in favor of try_create_with_bytes()
These were already equivalent, so let's only have one of them.
This commit is contained in:
@@ -426,7 +426,7 @@ bool IPv4Socket::did_receive(const IPv4Address& source_address, u16 source_port,
|
||||
dbgln("IPv4Socket({}): did_receive refusing packet since queue is full.", this);
|
||||
return false;
|
||||
}
|
||||
auto data_or_error = KBuffer::try_copy(packet.data(), packet.size());
|
||||
auto data_or_error = KBuffer::try_create_with_bytes(packet);
|
||||
if (data_or_error.is_error()) {
|
||||
dbgln("IPv4Socket: did_receive unable to allocate storage for incoming packet.");
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user