[haiku-commits] r35999 - haiku/trunk/src/add-ons/kernel/drivers/tty

  • From: axeld@xxxxxxxxxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Mon, 29 Mar 2010 20:22:04 +0200 (CEST)

Author: axeld
Date: 2010-03-29 20:22:04 +0200 (Mon, 29 Mar 2010)
New Revision: 35999
Changeset: http://dev.haiku-os.org/changeset/35999/haiku

Modified:
   haiku/trunk/src/add-ons/kernel/drivers/tty/tty.cpp
Log:
* The usual cleanup behind mmu_man ;-)


Modified: haiku/trunk/src/add-ons/kernel/drivers/tty/tty.cpp
===================================================================
--- haiku/trunk/src/add-ons/kernel/drivers/tty/tty.cpp  2010-03-29 18:10:42 UTC 
(rev 35998)
+++ haiku/trunk/src/add-ons/kernel/drivers/tty/tty.cpp  2010-03-29 18:22:04 UTC 
(rev 35999)
@@ -1749,9 +1749,9 @@
                        ReaderLocker readLocker(cookie);
 
                        status_t status = readLocker.AcquireReader(0, 1);
-                       if (status >= B_OK)
+                       if (status == B_OK)
                                toRead = readLocker.AvailableBytes();
-                       else if(status != B_WOULD_BLOCK)
+                       else if (status != B_WOULD_BLOCK)
                                return status;
 
                        if (user_memcpy(buffer, &toRead, sizeof(int)) != B_OK)


Other related posts: