Commit 2c7fb469 authored by Saurav Girepunje's avatar Saurav Girepunje Committed by Martin K. Petersen

scsi: lpfc: lpfc_attr: Fix Use plain integer as NULL pointer

Replace assignment of 0 to pointer with NULL assignment.

Link: https://lore.kernel.org/r/20191024025726.GA31421@sauravSigned-off-by: default avatarSaurav Girepunje <saurav.girepunje@gmail.com>
Acked-by: default avatarDick Kennedy <dick.kennedy@broadcom.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 74acec65
...@@ -1644,7 +1644,7 @@ lpfc_set_trunking(struct lpfc_hba *phba, char *buff_out) ...@@ -1644,7 +1644,7 @@ lpfc_set_trunking(struct lpfc_hba *phba, char *buff_out)
{ {
LPFC_MBOXQ_t *mbox = NULL; LPFC_MBOXQ_t *mbox = NULL;
unsigned long val = 0; unsigned long val = 0;
char *pval = 0; char *pval = NULL;
int rc = 0; int rc = 0;
if (!strncmp("enable", buff_out, if (!strncmp("enable", buff_out,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment