From: Chuck Lever Date: Fri, 26 Oct 2007 17:30:59 +0000 (-0400) Subject: SUNRPC: temp var should match return type of xdr_skb_read_actor X-Git-Tag: v2.6.25-rc1~1146^2~80 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=322e2efe6224be5de2852a7fddfac5cf11317af3;p=linux-2.6-omap-h63xx.git SUNRPC: temp var should match return type of xdr_skb_read_actor The return type of xdr_skb_read_actor functions is size_t. This fixes a nit I unwittingly overlooked in commit dd456471. Signed-off-by: Chuck Lever Signed-off-by: Trond Myklebust --- diff --git a/net/sunrpc/socklib.c b/net/sunrpc/socklib.c index 97ac45f034d..a661a3acb37 100644 --- a/net/sunrpc/socklib.c +++ b/net/sunrpc/socklib.c @@ -72,7 +72,7 @@ ssize_t xdr_partial_copy_from_skb(struct xdr_buf *xdr, unsigned int base, struct struct page **ppage = xdr->pages; unsigned int len, pglen = xdr->page_len; ssize_t copied = 0; - int ret; + size_t ret; len = xdr->head[0].iov_len; if (base < len) {