Kernel: Remove obsolete size_t casts

This commit is contained in:
Gunnar Beutner 2021-06-17 11:15:55 +02:00 committed by Andreas Kling
parent 9b14a8605a
commit bf779e182e
Notes: sideshowbarker 2024-07-18 12:07:05 +09:00
8 changed files with 11 additions and 11 deletions

View file

@ -838,7 +838,7 @@ KResultOr<size_t> Ext2FSInode::read_bytes(off_t offset, size_t count, UserOrKern
if (is_symlink() && size() < max_inline_symlink_length) {
VERIFY(offset == 0);
size_t nread = min((off_t)size() - offset, static_cast<off_t>(count));
if (!buffer.write(((const u8*)m_raw_inode.i_block) + offset, (size_t)nread))
if (!buffer.write(((const u8*)m_raw_inode.i_block) + offset, nread))
return EFAULT;
return nread;
}