提交 ed9e352a 编写于 作者: A Andy Grover 提交者: David S. Miller

RDS/IW: Remove dead code

In iWARP code, node_type will always be RNIC
Signed-off-by: NAndy Grover <andy.grover@oracle.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 404bb72a
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册