kernel/file_cache: Move write_zeros_... call out of else.
Style only, no functional change. Requested by axeld.
This commit is contained in:
parent
be1cc9c890
commit
b344d252e9
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue