Skip to contentSkip to conversation

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

PATCH Applied James Smart 2 participants 2 messages Oct 24, 2019 – Oct 25, 2019 1 message not in the archive SCSI

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): 20191024025726.GA31421@saurav

James Smart

author Reviewed-by
#1 lore raw
Quoted 12 lines · Saurav Girepunje

Replace assignment of 0 to pointer with NULL assignment.

---
  drivers/scsi/lpfc/lpfc_attr.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/scsi/lpfc/lpfc_attr.c +0 -0
index ea62322ffe2b..f7df95963a63 100644

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

-- james