SUNRPC: Replace the "__be32 *p" parameter to .pc_encode
[sfrench/cifs-2.6.git] / fs / lockd / svc.c
index 9a82471bda0714f90567054e6934cdc0414e290c..b220e1b9172683b798cf83fecb2ba30c6197c1b7 100644 (file)
@@ -780,7 +780,6 @@ module_exit(exit_nlm);
 static int nlmsvc_dispatch(struct svc_rqst *rqstp, __be32 *statp)
 {
        const struct svc_procedure *procp = rqstp->rq_procinfo;
-       struct kvec *resv = rqstp->rq_res.head;
 
        svcxdr_init_decode(rqstp);
        if (!procp->pc_decode(rqstp, &rqstp->rq_arg_stream))
@@ -793,7 +792,7 @@ static int nlmsvc_dispatch(struct svc_rqst *rqstp, __be32 *statp)
                return 1;
 
        svcxdr_init_encode(rqstp);
-       if (!procp->pc_encode(rqstp, resv->iov_base + resv->iov_len))
+       if (!procp->pc_encode(rqstp, &rqstp->rq_res_stream))
                goto out_encode_err;
 
        return 1;