Skip to contentSkip to conversation

SUNRPC: Fix return type mismatch in svc_max_payload()

PATCH In review Chuck Lever 1 participant 1 message Oct 26, 2007

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

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().

---

 net/sunrpc/svc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
net/sunrpc/svc.c +1 -1
index a4a6bf7..4695ad7 100644
@@ -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