ntdll: Remove redundant avail_mode check and confusing comment.

Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alex Henrie 2016-01-11 02:02:32 -07:00 committed by Alexandre Julliard
parent bbcb77cda5
commit 63468b02b8
1 changed files with 1 additions and 7 deletions

View File

@ -523,13 +523,7 @@ static NTSTATUS FILE_AsyncReadService( void *user, IO_STATUS_BLOCK *iosb,
if (fileio->already >= fileio->count || fileio->avail_mode)
status = STATUS_SUCCESS;
else
{
/* if we only have to read the available data, and none is available,
* simply cancel the request. If data was available, it has been read
* while in by previous call (NtDelayExecution)
*/
status = (fileio->avail_mode) ? STATUS_SUCCESS : STATUS_PENDING;
}
status = STATUS_PENDING;
}
break;