mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-26 11:19:32 +03:00
Fix vn_rdwr() compiler warning
kernel.c: In function 'vn_rdwr': kernel.c:736:8: warning: unused variable 'status' [-Wunused-variable] Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
This commit is contained in:
parent
b858767a31
commit
928c58dd0f
@ -733,8 +733,8 @@ vn_rdwr(int uio, vnode_t *vp, void *addr, ssize_t len, offset_t offset,
|
||||
if (uio == UIO_READ) {
|
||||
rc = pread64(vp->v_fd, addr, len, offset);
|
||||
if (vp->v_dump_fd != -1) {
|
||||
int status =
|
||||
pwrite64(vp->v_dump_fd, addr, rc, offset);
|
||||
int status;
|
||||
status = pwrite64(vp->v_dump_fd, addr, rc, offset);
|
||||
ASSERT(status != -1);
|
||||
}
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user