From: James Smart <james.smart@broadcom.com>
To: Saurav Girepunje <saurav.girepunje@gmail.com>,
dick.kennedy@broadcom.com, jejb@linux.ibm.com,
martin.petersen@oracle.com, linux-scsi@vger.kernel.org,
linux-kernel@vger.kernel.org
Cc: saurav.girepunje@hotmail.com
Subject: Re: [PATCH] scsi: lpfc: lpfc_nvmet.c: Fix Use plain integer as NULL pointer
Date: Thu, 24 Oct 2019 11:15:30 -0700 [thread overview]
Message-ID: <c08db818-8c35-e4a0-2ff3-53820075d859@broadcom.com> (raw)
In-Reply-To: <20191024030857.GA12097@saurav>
On 10/23/2019 8:09 PM, Saurav Girepunje wrote:
> Replace assignment of 0 to pointer with NULL assignment.
>
> Signed-off-by: Saurav Girepunje <saurav.girepunje@gmail.com>
> ---
> drivers/scsi/lpfc/lpfc_nvmet.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/scsi/lpfc/lpfc_nvmet.c b/drivers/scsi/lpfc/lpfc_nvmet.c
> index faa596f9e861..f6ebfe05224c 100644
> --- a/drivers/scsi/lpfc/lpfc_nvmet.c
> +++ b/drivers/scsi/lpfc/lpfc_nvmet.c
> @@ -3364,7 +3364,7 @@ lpfc_nvmet_sol_fcp_issue_abort(struct lpfc_hba *phba,
> /* ABTS WQE must go to the same WQ as the WQE to be aborted */
> abts_wqeq->hba_wqidx = ctxp->wqeq->hba_wqidx;
> abts_wqeq->wqe_cmpl = lpfc_nvmet_sol_fcp_abort_cmp;
> - abts_wqeq->iocb_cmpl = 0;
> + abts_wqeq->iocb_cmpl = NULL;
> abts_wqeq->iocb_flag |= LPFC_IO_NVME;
> abts_wqeq->context2 = ctxp;
> abts_wqeq->vport = phba->pport;
> @@ -3499,7 +3499,7 @@ lpfc_nvmet_unsol_ls_issue_abort(struct lpfc_hba *phba,
>
> spin_lock_irqsave(&phba->hbalock, flags);
> abts_wqeq->wqe_cmpl = lpfc_nvmet_xmt_ls_abort_cmp;
> - abts_wqeq->iocb_cmpl = 0;
> + abts_wqeq->iocb_cmpl = NULL;
> abts_wqeq->iocb_flag |= LPFC_IO_NVME_LS;
> rc = lpfc_sli4_issue_wqe(phba, ctxp->hdwq, abts_wqeq);
> spin_unlock_irqrestore(&phba->hbalock, flags);
Thanks
Reviewed-by: James Smart <james.smart@broadcom.com>
-- james
next parent reply other threads:[~2019-10-24 18:15 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20191024030857.GA12097@saurav>
2019-10-24 18:15 ` James Smart [this message]
2019-10-25 1:12 ` [PATCH] scsi: lpfc: lpfc_nvmet.c: Fix Use plain integer as NULL pointer Martin K. Petersen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c08db818-8c35-e4a0-2ff3-53820075d859@broadcom.com \
--to=james.smart@broadcom.com \
--cc=dick.kennedy@broadcom.com \
--cc=jejb@linux.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=martin.petersen@oracle.com \
--cc=saurav.girepunje@gmail.com \
--cc=saurav.girepunje@hotmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox