* The usual cleanup behind mmu_man ;-)

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35999 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2010-03-29 18:22:04 +00:00
parent 9e1eee901e
commit 61fb53ddc5
1 changed files with 2 additions and 2 deletions

View File

@ -1749,9 +1749,9 @@ tty_ioctl(tty_cookie* cookie, uint32 op, void* buffer, size_t length)
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)