mlx4_ib: simplify retrieval of ib_device
Subsystems (2)
PATCH 1/1 mlx4_ib: simplify retrieval of ib_device
struct ib_qp already holds a pointer to the ib device. No need to dive to the hw device object to retrieve it.
Signed-off-by Eli Cohen <eli-VPRAkNaXOzVS1MOuV/[email protected]>
--- drivers/infiniband/hw/mlx4/qp.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/infiniband/hw/mlx4/qp.c +1 -1
@@ -1214,7 +1214,7 @@ out:static int build_mlx_header (struct mlx4_ib_sqp *sqp,struct ib_send_wr *wr,void *wqe,unsigned *mlx_seg_len) { -struct ib_device *ib_dev = &to_mdev (sqp->qp.ibqp.device)->ib_dev; +struct ib_device *ib_dev = sqp->qp.ibqp.device;struct mlx4_wqe_mlx_seg *mlx = wqe;struct mlx4_wqe_inline_seg *inl = wqe +sizeof *mlx;struct mlx4_ib_ah *ah =to_mah (wr->wr.ud.ah);
Signature · 6 lines
1.6.6.1 -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Roland Dreier
Appliedthanks, applied
Signature · 7 lines
Roland Dreier <[email protected]> For corporate legal information go to: http://www.cisco.com/web/about/doing_business/legal/cri/index.html -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html