diff options
author | Bart Van Assche <bart.vanassche@wdc.com> | 2018-07-31 17:51:30 +0200 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2018-08-01 00:57:23 +0200 |
commit | dd708e7b4541da1d61cdce2db1d9701444fdb317 (patch) | |
tree | 9877ac3cf70218476d21c1b06e8f562eebdcb1f0 /drivers/infiniband/hw/cxgb4 | |
parent | rdma/cxgb4: Fix SRQ endianness annotations (diff) | |
download | linux-dd708e7b4541da1d61cdce2db1d9701444fdb317.tar.xz linux-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')
-rw-r--r-- | drivers/infiniband/hw/cxgb4/qp.c | 2 |
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; |