diff options
author | Saurav Girepunje <saurav.girepunje@gmail.com> | 2019-10-24 04:57:29 +0200 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2019-10-25 03:12:02 +0200 |
commit | 2c7fb469024f0da98f4d078fcf570786ec87c384 (patch) | |
tree | cc03ac4493d083b53b0e5dd0e2358da6137a2351 | |
parent | scsi: lpfc: Update lpfc version to 12.6.0.0 (diff) | |
download | linux-2c7fb469024f0da98f4d078fcf570786ec87c384.tar.xz 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>
-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, |