kernel: Fix poll syscall

This commit is contained in:
apio 2023-08-14 18:14:16 +02:00
parent 0a3df694c1
commit bd4c123fdd
Signed by: apio
GPG Key ID: B8A7D06E42258954

View File

@ -48,9 +48,6 @@ Result<u64> sys_poll(Registers*, SyscallArgs args)
if (kfds[i].events & POLLIN)
{
fds_with_events++;
kfds[i].revents |= POLLIN;
if (inode->type() == VFS::InodeType::Socket)
{
auto socket = (Socket*)inode.ptr();