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>
This commit is contained in:
parent
404bb72a56
commit
ed9e352a35
13
net/rds/iw.c
13
net/rds/iw.c
|
@ -89,15 +89,10 @@ void rds_iw_add_one(struct ib_device *device)
|
||||||
goto free_dev;
|
goto free_dev;
|
||||||
|
|
||||||
if (!rds_iwdev->dma_local_lkey) {
|
if (!rds_iwdev->dma_local_lkey) {
|
||||||
if (device->node_type != RDMA_NODE_RNIC) {
|
rds_iwdev->mr = ib_get_dma_mr(rds_iwdev->pd,
|
||||||
rds_iwdev->mr = ib_get_dma_mr(rds_iwdev->pd,
|
IB_ACCESS_REMOTE_READ |
|
||||||
IB_ACCESS_LOCAL_WRITE);
|
IB_ACCESS_REMOTE_WRITE |
|
||||||
} else {
|
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))
|
if (IS_ERR(rds_iwdev->mr))
|
||||||
goto err_pd;
|
goto err_pd;
|
||||||
} else
|
} else
|
||||||
|
|
Loading…
Reference in New Issue