summaryrefslogtreecommitdiffstats
path: root/net/rds/iw.c
diff options
context:
space:
mode:
authorAndy Grover <andy.grover@oracle.com>2009-07-17 13:13:34 +0000
committerDavid S. Miller <davem@davemloft.net>2009-07-20 08:03:14 -0700
commit404bb72a56e553febe1055f98347a7a3e3145759 (patch)
treee3bfff575017d7eef19f04ced1335b2eef3515fb /net/rds/iw.c
parenta870d62726721785c34fa73d852bd35e5d1b295b (diff)
downloadlinux-404bb72a56e553febe1055f98347a7a3e3145759.tar.gz
linux-404bb72a56e553febe1055f98347a7a3e3145759.tar.bz2
linux-404bb72a56e553febe1055f98347a7a3e3145759.zip
RDS/IW: Remove page_shift variable from iwarp transport
The existing code treated page_shift as a variable, when in fact we always want to have the fastreg page size be the same as the arch's page size -- and it is, so this doesn't need to be a variable. Signed-off-by: Andy Grover <andy.grover@oracle.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/rds/iw.c')
-rw-r--r--net/rds/iw.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/net/rds/iw.c b/net/rds/iw.c
index d16e1cbc8e83..2e6b495502c1 100644
--- a/net/rds/iw.c
+++ b/net/rds/iw.c
@@ -83,8 +83,6 @@ void rds_iw_add_one(struct ib_device *device)
rds_iwdev->max_wrs = dev_attr->max_qp_wr;
rds_iwdev->max_sge = min(dev_attr->max_sge, RDS_IW_MAX_SGE);
- rds_iwdev->page_shift = max(PAGE_SHIFT, ffs(dev_attr->page_size_cap) - 1);
-
rds_iwdev->dev = device;
rds_iwdev->pd = ib_alloc_pd(device);
if (IS_ERR(rds_iwdev->pd))