Explorar o código

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

Andreas Kling %!s(int64=3) %!d(string=hai) anos
pai
achega
ed77b6f8cb
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Kernel/FileSystem/FIFO.cpp

+ 1 - 1
Kernel/FileSystem/FIFO.cpp

@@ -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);