aboutsummaryrefslogtreecommitdiff
path: root/net/rds/rdma.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/rds/rdma.c')
-rw-r--r--net/rds/rdma.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/net/rds/rdma.c b/net/rds/rdma.c
index 4810a25a53c..1fa0f4b9fac 100644
--- a/net/rds/rdma.c
+++ b/net/rds/rdma.c
@@ -497,14 +497,6 @@ static struct rds_rdma_op *rds_rdma_prepare(struct rds_sock *rs,
max_pages = max(nr, max_pages);
nr_pages += nr;
-
- /*
- * nr_pages for one entry is limited to (UINT_MAX>>PAGE_SHIFT)+1,
- * so tot_pages cannot overflow without first going negative.
- */
- if ((int)nr_pages < 0)
- ret = -EINVAL;
- goto out;
}
pages = kcalloc(max_pages, sizeof(struct page *), GFP_KERNEL);