SUNRPC: Fix return type mismatch in svc_max_payload()
Subsystems (3)
PATCH 7/27 SUNRPC: Fix return type mismatch in svc_max_payload()
Nit: make sure return type and type of temporary return value match in svc_max_payload().
Signed-off-by Chuck Lever <[email protected]>
---
net/sunrpc/svc.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
net/sunrpc/svc.c +1 -1
@@ -1054,7 +1054,7 @@ err_bad:*/ u32 svc_max_payload (const struct svc_rqst *rqstp) { -int max =RPCSVC_MAXPAYLOAD_TCP ; +u32 max =RPCSVC_MAXPAYLOAD_TCP ;if (rqstp->rq_sock->sk_sock->type ==SOCK_DGRAM ) max =RPCSVC_MAXPAYLOAD_UDP ;
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs