summaryrefslogtreecommitdiff
path: root/Kernel/FileSystem/ProcFS.cpp
diff options
context:
space:
mode:
authorGunnar Beutner <gbeutner@serenityos.org>2021-06-17 11:15:55 +0200
committerAndreas Kling <kling@serenityos.org>2021-06-17 19:52:54 +0200
commitbf779e182ec4f38b6d4abf470e21fcba0184c8d4 (patch)
treec6c684f216bd4eeae3a61006432a93319ed7078c /Kernel/FileSystem/ProcFS.cpp
parent9b14a8605a8ef4ab81141f7baff634d472912beb (diff)
downloadserenity-bf779e182ec4f38b6d4abf470e21fcba0184c8d4.zip
Kernel: Remove obsolete size_t casts
Diffstat (limited to 'Kernel/FileSystem/ProcFS.cpp')
-rw-r--r--Kernel/FileSystem/ProcFS.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/FileSystem/ProcFS.cpp b/Kernel/FileSystem/ProcFS.cpp
index 977162e6bc..76bad8a63a 100644
--- a/Kernel/FileSystem/ProcFS.cpp
+++ b/Kernel/FileSystem/ProcFS.cpp
@@ -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;