NFS: Fix a compile warning about unused variable in nfs_generic_pg_pgios()

Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
This commit is contained in:
Trond Myklebust 2016-01-08 08:12:47 -05:00
parent 926ea40a7e
commit 44aab3e09e

View file

@ -796,12 +796,9 @@ EXPORT_SYMBOL_GPL(nfs_generic_pgio);
static int nfs_generic_pg_pgios(struct nfs_pageio_descriptor *desc) static int nfs_generic_pg_pgios(struct nfs_pageio_descriptor *desc)
{ {
struct nfs_pgio_mirror *mirror;
struct nfs_pgio_header *hdr; struct nfs_pgio_header *hdr;
int ret; int ret;
mirror = nfs_pgio_current_mirror(desc);
hdr = nfs_pgio_header_alloc(desc->pg_rw_ops); hdr = nfs_pgio_header_alloc(desc->pg_rw_ops);
if (!hdr) { if (!hdr) {
desc->pg_error = -ENOMEM; desc->pg_error = -ENOMEM;