diff options
author | Saurav Girepunje <saurav.girepunje@gmail.com> | 2019-10-24 08:27:29 +0530 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2019-10-24 21:12:02 -0400 |
commit | 2c7fb469024f0da98f4d078fcf570786ec87c384 (patch) | |
tree | cc03ac4493d083b53b0e5dd0e2358da6137a2351 /drivers/scsi/lpfc | |
parent | 74acec655f560ef721c1e191732af2bcb094b537 (diff) | |
download | linux-2c7fb469024f0da98f4d078fcf570786ec87c384.tar.gz linux-2c7fb469024f0da98f4d078fcf570786ec87c384.tar.bz2 linux-2c7fb469024f0da98f4d078fcf570786ec87c384.zip |
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@saurav
Signed-off-by: Saurav Girepunje <saurav.girepunje@gmail.com>
Acked-by: Dick Kennedy <dick.kennedy@broadcom.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/lpfc')
-rw-r--r-- | drivers/scsi/lpfc/lpfc_attr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/lpfc/lpfc_attr.c b/drivers/scsi/lpfc/lpfc_attr.c index e738c1529d2d..2d090ea2b736 100644 --- a/drivers/scsi/lpfc/lpfc_attr.c +++ b/drivers/scsi/lpfc/lpfc_attr.c @@ -1644,7 +1644,7 @@ lpfc_set_trunking(struct lpfc_hba *phba, char *buff_out) { LPFC_MBOXQ_t *mbox = NULL; unsigned long val = 0; - char *pval = 0; + char *pval = NULL; int rc = 0; if (!strncmp("enable", buff_out, |