diff options
author | Selvin Xavier <selvin.xavier@emulex.com> | 2014-06-10 16:02:26 +0200 |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2014-08-02 00:07:49 +0200 |
commit | 1b09a0c29034eaf68bad9f8821531ebd194af3f7 (patch) | |
tree | 0fedfbd6d4176c4b2d7d2cb02a27e02cd167a5e9 /drivers/infiniband | |
parent | RDMA/ocrdma: Initialize the GID table while registering the device (diff) | |
download | linux-1b09a0c29034eaf68bad9f8821531ebd194af3f7.tar.xz linux-1b09a0c29034eaf68bad9f8821531ebd194af3f7.zip |
RDMA/ocrdma: Fix a sparse warning
Fix the warning about the usage of plain integer as NULL pointer.
Signed-off-by: Selvin Xavier <selvin.xavier@emulex.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r-- | drivers/infiniband/hw/ocrdma/ocrdma_hw.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/ocrdma/ocrdma_hw.c b/drivers/infiniband/hw/ocrdma/ocrdma_hw.c index 105659d7ef79..a4d27c70528f 100644 --- a/drivers/infiniband/hw/ocrdma/ocrdma_hw.c +++ b/drivers/infiniband/hw/ocrdma/ocrdma_hw.c @@ -661,7 +661,7 @@ static void ocrdma_dispatch_ibevent(struct ocrdma_dev *dev, { struct ocrdma_qp *qp = NULL; struct ocrdma_cq *cq = NULL; - struct ib_event ib_evt = { 0 }; + struct ib_event ib_evt; int cq_event = 0; int qp_event = 1; int srq_event = 0; @@ -674,6 +674,8 @@ static void ocrdma_dispatch_ibevent(struct ocrdma_dev *dev, if (cqe->cqvalid_cqid & OCRDMA_AE_MCQE_CQVALID) cq = dev->cq_tbl[cqe->cqvalid_cqid & OCRDMA_AE_MCQE_CQID_MASK]; + memset(&ib_evt, 0, sizeof(ib_evt)); + ib_evt.device = &dev->ibdev; switch (type) { |