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

Commit dd708e7b authored by Bart Van Assche's avatar Bart Van Assche Committed by Jason Gunthorpe
Browse files

rdma/cxgb4: Simplify a structure initialization



This patch avoids that sparse reports the following warning:

drivers/infiniband/hw/cxgb4/qp.c:2269:34: warning: Using plain integer as NULL pointer

Signed-off-by: default avatarBart Van Assche <bart.vanassche@wdc.com>
Acked-by: default avatarSteve Wise <swise@opengridcomputing.com>
Acked-by: default avatarRaju Rangoju <rajur@chelsio.com>
Signed-off-by: default avatarJason Gunthorpe <jgg@mellanox.com>
parent eb2463ba
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2266,7 +2266,7 @@ struct ib_qp *c4iw_get_qp(struct ib_device *dev, int qpn)

void c4iw_dispatch_srq_limit_reached_event(struct c4iw_srq *srq)
{
	struct ib_event event = {0};
	struct ib_event event = {};

	event.device = &srq->rhp->ibdev;
	event.element.srq = &srq->ibsrq;