diff options
author | Christoph Hellwig <hch@lst.de> | 2017-05-08 17:35:49 +0200 |
---|---|---|
committer | Anna Schumaker <Anna.Schumaker@Netapp.com> | 2017-07-13 21:57:59 +0200 |
commit | 1c8a5409f3c4748ff42c1721d9578dd03091f378 (patch) | |
tree | 70ff6480826a2120ee50aef20a9cdf0a2935ee2b /net | |
parent | nfsd: remove the unused PROC() macro in nfs3proc.c (diff) | |
download | linux-1c8a5409f3c4748ff42c1721d9578dd03091f378.tar.xz linux-1c8a5409f3c4748ff42c1721d9578dd03091f378.zip |
sunrpc: properly type pc_func callbacks
Drop the argp and resp arguments as they can trivially be derived from
the rqstp argument. With that all functions now have the same prototype,
and we can remove the unsafe casting to svc_procfunc as well as the
svc_procfunc typedef itself.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'net')
-rw-r--r-- | net/sunrpc/svc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sunrpc/svc.c b/net/sunrpc/svc.c index bc0f5a0ecbdc..95335455ad38 100644 --- a/net/sunrpc/svc.c +++ b/net/sunrpc/svc.c @@ -1281,7 +1281,7 @@ svc_process_common(struct svc_rqst *rqstp, struct kvec *argv, struct kvec *resv) if (xdr && !xdr(rqstp, argv->iov_base, rqstp->rq_argp)) goto err_garbage; - *statp = procp->pc_func(rqstp, rqstp->rq_argp, rqstp->rq_resp); + *statp = procp->pc_func(rqstp); /* Encode reply */ if (*statp == rpc_drop_reply || |