scsi: lpfc: lpfc_attr.c: Fix Use plain integer as NULL pointer
A message that is not in the archive (sent off-list or not yet received): 20191024025726.GA31421@saurav
James Smart
Reviewed-byQuoted 12 lines · Saurav Girepunje
Replace assignment of 0 to pointer with NULL assignment.
Signed-off-by Saurav Girepunje <[email protected]>--- drivers/scsi/lpfc/lpfc_attr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/scsi/lpfc/lpfc_attr.c +0
-0
drivers/scsi/lpfc/lpfc_attr.c lpfc_set_trunking(struct lpfc_hba *phba, char *buff_out) · line 1647
Quoted 8 lines
drivers/scsi/lpfc/lpfc_attr.c +1
-1@@ -1641,7 +1641,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,
thanks
Reviewed-by James Smart <[email protected]>
-- james
Martin K. Petersen
AppliedSaurav,
Quoted 1 line
Replace assignment of 0 to pointer with NULL assignment.
Applied to 5.5/scsi-queue, thanks!
Signature · 1 line
Martin K. Petersen Oracle Linux Engineering