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:
Corinna Vinschen 2023-12-02 14:38:28 +01:00
parent 97b1f4db06
commit c0d2f38742

View file

@ -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;
}