aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/cxgb4/qp.c
diff options
context:
space:
mode:
authorBart Van Assche <bart.vanassche@wdc.com>2018-07-31 08:51:30 -0700
committerJason Gunthorpe <jgg@mellanox.com>2018-07-31 16:57:23 -0600
commitdd708e7b4541da1d61cdce2db1d9701444fdb317 (patch)
tree9877ac3cf70218476d21c1b06e8f562eebdcb1f0 /drivers/infiniband/hw/cxgb4/qp.c
parentrdma/cxgb4: Fix SRQ endianness annotations (diff)
downloadlinux-dev-dd708e7b4541da1d61cdce2db1d9701444fdb317.tar.xz
linux-dev-dd708e7b4541da1d61cdce2db1d9701444fdb317.zip
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>
Diffstat (limited to 'drivers/infiniband/hw/cxgb4/qp.c')
-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;