Skip to content

Commit

Permalink
RDS/IW: Remove dead code
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Andy Grover authored and David S. Miller committed Jul 20, 2009
1 parent 404bb72 commit ed9e352
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions net/rds/iw.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ed9e352

Please sign in to comment.