diff options
Diffstat (limited to 'net')
| -rw-r--r-- | net/sunrpc/svc.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/net/sunrpc/svc.c b/net/sunrpc/svc.c index bf46186ddf9f..d74c2d269539 100644 --- a/net/sunrpc/svc.c +++ b/net/sunrpc/svc.c | |||
| @@ -510,8 +510,7 @@ EXPORT_SYMBOL(svc_destroy); | |||
| 510 | static int | 510 | static int |
| 511 | svc_init_buffer(struct svc_rqst *rqstp, unsigned int size) | 511 | svc_init_buffer(struct svc_rqst *rqstp, unsigned int size) |
| 512 | { | 512 | { |
| 513 | int pages; | 513 | unsigned int pages, arghi; |
| 514 | int arghi; | ||
| 515 | 514 | ||
| 516 | pages = size / PAGE_SIZE + 1; /* extra page as we hold both request and reply. | 515 | pages = size / PAGE_SIZE + 1; /* extra page as we hold both request and reply. |
| 517 | * We assume one is at most one page | 516 | * We assume one is at most one page |
| @@ -525,7 +524,7 @@ svc_init_buffer(struct svc_rqst *rqstp, unsigned int size) | |||
| 525 | rqstp->rq_pages[arghi++] = p; | 524 | rqstp->rq_pages[arghi++] = p; |
| 526 | pages--; | 525 | pages--; |
| 527 | } | 526 | } |
| 528 | return ! pages; | 527 | return pages == 0; |
| 529 | } | 528 | } |
| 530 | 529 | ||
| 531 | /* | 530 | /* |
