Skip to content

Commit dd708e7

Browse files
KAGA-KOKOjgunthorpe
authored andcommitted
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: Bart Van Assche <[email protected]> Acked-by: Steve Wise <[email protected]> Acked-by: Raju Rangoju <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
1 parent eb2463b commit dd708e7

File tree

1 file changed

+1
-1
lines changed
  • drivers/infiniband/hw/cxgb4

1 file changed

+1
-1
lines changed

drivers/infiniband/hw/cxgb4/qp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2266,7 +2266,7 @@ struct ib_qp *c4iw_get_qp(struct ib_device *dev, int qpn)
22662266

22672267
void c4iw_dispatch_srq_limit_reached_event(struct c4iw_srq *srq)
22682268
{
2269-
struct ib_event event = {0};
2269+
struct ib_event event = {};
22702270

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

0 commit comments

Comments
 (0)