Cygwin: fallocate(2): drop useless zeroing pointer
The out pointer is only used if data_chunk_count is > 0, so there's no reason to set it to NULL in the error case. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
parent
97b1f4db06
commit
c0d2f38742
1 changed files with 1 additions and 3 deletions
|
@ -1319,9 +1319,7 @@ fhandler_disk_file::falloc_zero_range (int mode, off_t offset, off_t length)
|
|||
status = NtFsControlFile (get_handle (), NULL, NULL, NULL,
|
||||
&io, FSCTL_QUERY_ALLOCATED_RANGES,
|
||||
&inp, sizeof inp, out, 2 * NT_MAX_PATH);
|
||||
if (NT_ERROR (status))
|
||||
out = NULL;
|
||||
else
|
||||
if (!NT_ERROR (status))
|
||||
data_chunk_count = io.Information / sizeof *out;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue