diff options
author | Andy Grover <andy.grover@oracle.com> | 2009-07-17 15:13:35 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-07-20 17:03:15 +0200 |
commit | ed9e352a350ec85eb354046e0db6a86019620f53 (patch) | |
tree | d198ec70a5b5d64199b65b6e341a32261ea5c76c /net/rds/iw.c | |
parent | RDS/IW: Remove page_shift variable from iwarp transport (diff) | |
download | linux-ed9e352a350ec85eb354046e0db6a86019620f53.tar.xz linux-ed9e352a350ec85eb354046e0db6a86019620f53.zip |
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/rds/iw.c')
-rw-r--r-- | net/rds/iw.c | 13 |
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) goto free_dev; if (!rds_iwdev->dma_local_lkey) { - if (device->node_type != RDMA_NODE_RNIC) { - rds_iwdev->mr = ib_get_dma_mr(rds_iwdev->pd, - IB_ACCESS_LOCAL_WRITE); - } else { - rds_iwdev->mr = ib_get_dma_mr(rds_iwdev->pd, - IB_ACCESS_REMOTE_READ | - IB_ACCESS_REMOTE_WRITE | - IB_ACCESS_LOCAL_WRITE); - } + rds_iwdev->mr = ib_get_dma_mr(rds_iwdev->pd, + IB_ACCESS_REMOTE_READ | + IB_ACCESS_REMOTE_WRITE | + IB_ACCESS_LOCAL_WRITE); if (IS_ERR(rds_iwdev->mr)) goto err_pd; } else |