aboutsummaryrefslogtreecommitdiffstats
path: root/lib/libzpool/kernel.c
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2016-01-11 14:09:00 -0800
committerBrian Behlendorf <[email protected]>2016-01-11 14:10:30 -0800
commit928c58dd0f297024363f8703cc57670fa9c96db7 (patch)
tree4ef31afccccf6ada5bb27ff2cf680ce35af1b233 /lib/libzpool/kernel.c
parentb858767a31bc80cc9a65d1e7af70213916bfa34a (diff)
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 <[email protected]>
Diffstat (limited to 'lib/libzpool/kernel.c')
-rw-r--r--lib/libzpool/kernel.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libzpool/kernel.c b/lib/libzpool/kernel.c
index 31d3336a8..5d26f7ca8 100644
--- a/lib/libzpool/kernel.c
+++ b/lib/libzpool/kernel.c
@@ -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 {