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:
Brian Behlendorf 2016-01-11 14:09:00 -08:00
parent b858767a31
commit 928c58dd0f

View File

@ -733,8 +733,8 @@ vn_rdwr(int uio, vnode_t *vp, void *addr, ssize_t len, offset_t offset,
if (uio == UIO_READ) { if (uio == UIO_READ) {
rc = pread64(vp->v_fd, addr, len, offset); rc = pread64(vp->v_fd, addr, len, offset);
if (vp->v_dump_fd != -1) { if (vp->v_dump_fd != -1) {
int status = int status;
pwrite64(vp->v_dump_fd, addr, rc, offset); status = pwrite64(vp->v_dump_fd, addr, rc, offset);
ASSERT(status != -1); ASSERT(status != -1);
} }
} else { } else {