[USETUP][ROSAPPS][EXT2LIB] NtReadFile() calls: Remove unused 'ByteOffset = 0', Use explicit NULL instead of ambiguous 0, Remove casts to same type. CORE-13910

This commit is contained in:
Serge Gautherie 2017-11-01 13:20:14 +01:00 committed by Thomas Faber
parent ba9a1c3abb
commit bcaa33e33b
No known key found for this signature in database
GPG key ID: 076E7C3D44720826
4 changed files with 7 additions and 8 deletions

View file

@ -1001,7 +1001,6 @@ InstallFat32BootCodeToFile(
return Status;
}
FileOffset.QuadPart = 0ULL;
Status = NtReadFile(FileHandle,
NULL,
NULL,

View file

@ -170,7 +170,7 @@ FlushConsoleInputBuffer(
&InputData,
sizeof(KEYBOARD_INPUT_DATA),
&Offset,
0);
NULL);
if (Status == STATUS_PENDING)
{
Timeout.QuadPart = -100;
@ -208,7 +208,7 @@ ReadConsoleInput(
&InputData,
sizeof(KEYBOARD_INPUT_DATA),
&Offset,
0);
NULL);
if (Status == STATUS_PENDING)
{
Status = NtWaitForSingleObject(hConsoleInput, FALSE, NULL);

View file

@ -2233,9 +2233,9 @@ long PICE_read(HANDLE hFile, LPVOID lpBuffer, long lBytes)
ASSERT( lpBuffer );
if (!NT_SUCCESS(NtReadFile(
(HANDLE) hFile,
hFile,
NULL, NULL, NULL, &iosb,
(LPVOID) lpBuffer,
lpBuffer,
(DWORD) lBytes,
NULL,
NULL

View file

@ -982,7 +982,7 @@ Ext2ReadDisk( PEXT2_FILESYS Ext2Sys,
Address.QuadPart = Offset;
Status = NtReadFile( Ext2Sys->MediaHandle,
0,
NULL,
NULL,
NULL,
&IoStatus,
@ -1009,7 +1009,7 @@ Ext2ReadDisk( PEXT2_FILESYS Ext2Sys,
}
Status = NtReadFile( Ext2Sys->MediaHandle,
0,
NULL,
NULL,
NULL,
&IoStatus,
@ -1106,7 +1106,7 @@ Ext2WriteDisk( PEXT2_FILESYS Ext2Sys,
if ((AlignedLength != Length) || (Address.QuadPart != (LONGLONG)Offset))
{
Status = NtReadFile( Ext2Sys->MediaHandle,
0,
NULL,
NULL,
NULL,
&IoStatus,