1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 15:48:12 +00:00

Kernel: Remove an obviously redundant check in FIFO::read()

This commit is contained in:
Andreas Kling 2021-08-28 23:19:45 +02:00
parent 4cbe348a0f
commit ed77b6f8cb

View file

@ -120,7 +120,7 @@ KResultOr<size_t> FIFO::read(FileDescription& fd, u64, UserOrKernelBuffer& buffe
if (m_buffer->is_empty()) {
if (!m_writers)
return 0;
if (m_writers && !fd.is_blocking())
if (!fd.is_blocking())
return EAGAIN;
}
return m_buffer->read(buffer, size);