aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorAndy Grover <andy.grover@oracle.com>2009-07-17 09:13:35 -0400
committerDavid S. Miller <davem@davemloft.net>2009-07-20 11:03:15 -0400
commited9e352a350ec85eb354046e0db6a86019620f53 (patch)
treed198ec70a5b5d64199b65b6e341a32261ea5c76c /net
parent404bb72a56e553febe1055f98347a7a3e3145759 (diff)
RDS/IW: Remove dead code
In iWARP code, node_type will always be RNIC Signed-off-by: Andy Grover <andy.grover@oracle.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r--net/rds/iw.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/net/rds/iw.c b/net/rds/iw.c
index 2e6b495502c1..f5e9a29a80a7 100644
--- a/net/rds/iw.c
+++ b/net/rds/iw.c
@@ -89,15 +89,10 @@ void rds_iw_add_one(struct ib_device *device)
89 goto free_dev; 89 goto free_dev;
90 90
91 if (!rds_iwdev->dma_local_lkey) { 91 if (!rds_iwdev->dma_local_lkey) {
92 if (device->node_type != RDMA_NODE_RNIC) { 92 rds_iwdev->mr = ib_get_dma_mr(rds_iwdev->pd,
93 rds_iwdev->mr = ib_get_dma_mr(rds_iwdev->pd, 93 IB_ACCESS_REMOTE_READ |
94 IB_ACCESS_LOCAL_WRITE); 94 IB_ACCESS_REMOTE_WRITE |
95 } else { 95 IB_ACCESS_LOCAL_WRITE);
96 rds_iwdev->mr = ib_get_dma_mr(rds_iwdev->pd,
97 IB_ACCESS_REMOTE_READ |
98 IB_ACCESS_REMOTE_WRITE |
99 IB_ACCESS_LOCAL_WRITE);
100 }
101 if (IS_ERR(rds_iwdev->mr)) 96 if (IS_ERR(rds_iwdev->mr))
102 goto err_pd; 97 goto err_pd;
103 } else 98 } else