Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ed9e352a authored by Andy Grover's avatar Andy Grover Committed by David S. Miller
Browse files

RDS/IW: Remove dead code



In iWARP code, node_type will always be RNIC

Signed-off-by: default avatarAndy Grover <andy.grover@oracle.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 404bb72a
Loading
Loading
Loading
Loading
+4 −9
Original line number Diff line number Diff line
@@ -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);
		}
		if (IS_ERR(rds_iwdev->mr))
			goto err_pd;
	} else