kernel/file_cache: Move write_zeros_... call out of else.

Style only, no functional change. Requested by axeld.
This commit is contained in:
Augustin Cavalier 2020-06-20 17:21:56 -04:00
parent be1cc9c890
commit b344d252e9
1 changed files with 2 additions and 2 deletions

View File

@ -1348,8 +1348,8 @@ file_cache_write(void* _cacheRef, void* cookie, off_t offset,
1, 0, &size);
*_size = size;
return error;
} else
return write_zeros_to_file(ref->vnode, cookie, offset, _size);
}
return write_zeros_to_file(ref->vnode, cookie, offset, _size);
}
status_t status = cache_io(ref, cookie, offset,