rdma/cxgb4: Simplify a structure initialization
authorBart Van Assche <bart.vanassche@wdc.com>
Tue, 31 Jul 2018 15:51:30 +0000 (08:51 -0700)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 31 Jul 2018 22:57:23 +0000 (16:57 -0600)
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 <bart.vanassche@wdc.com>
Acked-by: Steve Wise <swise@opengridcomputing.com>
Acked-by: Raju Rangoju <rajur@chelsio.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/cxgb4/qp.c

index 62e2c0d899f5e0d2e55bfdad3065cbf50a72d28e..c26086c76f0b7ea3d63a21487b1cf120e0f0d96a 100644 (file)
@@ -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;