mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
RDMA/ocrdma: Fix a sparse warning
Fix the warning about the usage of plain integer as NULL pointer. Signed-off-by: Selvin Xavier <[email protected]> Signed-off-by: Roland Dreier <[email protected]>
This commit is contained in:
parent
b8806324ea
commit
1b09a0c290
1 changed files with 3 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue