summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBart Van Assche <bart.vanassche@wdc.com>2018-07-31 18:51:30 +0300
committerJason Gunthorpe <jgg@mellanox.com>2018-08-01 01:57:23 +0300
commitdd708e7b4541da1d61cdce2db1d9701444fdb317 (patch)
tree9877ac3cf70218476d21c1b06e8f562eebdcb1f0
parenteb2463bab4bce46b0482a0e7e74575771a32fcf0 (diff)
downloadlinux-dd708e7b4541da1d61cdce2db1d9701444fdb317.tar.xz
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 <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>
-rw-r--r--drivers/infiniband/hw/cxgb4/qp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/cxgb4/qp.c b/drivers/infiniband/hw/cxgb4/qp.c
index 62e2c0d899f5..c26086c76f0b 100644
--- a/drivers/infiniband/hw/cxgb4/qp.c
+++ b/drivers/infiniband/hw/cxgb4/qp.c
@@ -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;