mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-22 23:55:12 +00:00
Kernel: Remove obsolete size_t casts
This commit is contained in:
committed by
Andreas Kling
parent
9b14a8605a
commit
bf779e182e
@@ -1503,7 +1503,7 @@ KResultOr<size_t> ProcFSInode::write_bytes(off_t offset, size_t size, const User
|
||||
VERIFY(is_persistent_inode(identifier()));
|
||||
// FIXME: Being able to write into ProcFS at a non-zero offset seems like something we should maybe support..
|
||||
VERIFY(offset == 0);
|
||||
auto nwritten_or_error = write_callback(identifier(), buffer, (size_t)size);
|
||||
auto nwritten_or_error = write_callback(identifier(), buffer, size);
|
||||
if (nwritten_or_error.is_error())
|
||||
dbgln("ProcFS: Writing {} bytes failed: {}", size, nwritten_or_error.error());
|
||||
return nwritten_or_error;
|
||||
|
||||
Reference in New Issue
Block a user