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:
parent
4cbe348a0f
commit
ed77b6f8cb
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue