X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=net%2Fsunrpc%2Fsvc.c;h=01c7e311b904597e826b1da925a03c888aa090f7;hb=dddec01eb8e2b56267b37a6f9f0997a64b4e0b2a;hp=bf46186ddf9fc016f5b85587c637c3e43e9d69a0;hpb=50c8bb13eaaf345caf2e7966667ba1d3e4d68af2;p=linux-2.6 diff --git a/net/sunrpc/svc.c b/net/sunrpc/svc.c index bf46186ddf..01c7e311b9 100644 --- a/net/sunrpc/svc.c +++ b/net/sunrpc/svc.c @@ -18,7 +18,6 @@ #include #include #include -#include #include #include @@ -510,8 +509,7 @@ EXPORT_SYMBOL(svc_destroy); static int svc_init_buffer(struct svc_rqst *rqstp, unsigned int size) { - int pages; - int arghi; + unsigned int pages, arghi; pages = size / PAGE_SIZE + 1; /* extra page as we hold both request and reply. * We assume one is at most one page @@ -525,7 +523,7 @@ svc_init_buffer(struct svc_rqst *rqstp, unsigned int size) rqstp->rq_pages[arghi++] = p; pages--; } - return ! pages; + return pages == 0; } /*