From: Chuck Lever Date: Fri, 26 Oct 2007 13:31:15 -0400 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 Signed-off-by: Trond Myklebust --- 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 bfcf7e5..cbe804a 100644 --- a/net/sunrpc/svc.c +++ b/net/sunrpc/svc.c @@ -1061,7 +1061,7 @@ EXPORT_SYMBOL(svc_process); */ 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;