From 928c58dd0f297024363f8703cc57670fa9c96db7 Mon Sep 17 00:00:00 2001 From: Brian Behlendorf Date: Mon, 11 Jan 2016 14:09:00 -0800 Subject: 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 --- lib/libzpool/kernel.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') 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 { -- cgit v1.2.3