lpfc 8.3.43: use NULL instead of 0 for pointer
Subsystems (2)
PATCH 1/1 lpfc 8.3.43: use NULL instead of 0 for pointer
Quoted 1 line
From
9e7478f6e953fac5b2bef0f5abe76fe8dc9e59d1Mon Sep 17 00:00:00 2001
From: Daeseok Youn <[email protected]>
Date: Fri, 21 Feb 2014 09:03:32 +0900
Subject: [PATCH] [SCSI] lpfc 8.3.43: use NULL instead of 0 for pointer
sparse says:drivers/scsi/lpfc/lpfc_sli.c:16547:37: warning:
Using plain integer as NULL pointer
Signed-off-by Daeseok Youn <[email protected]>
--- drivers/scsi/lpfc/lpfc_sli.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/scsi/lpfc/lpfc_sli.c +1 -1
@@ -16544,7 +16544,7 @@ lpfc_drain_txq(struct lpfc_hba *phba) {LIST_HEAD (completions);struct lpfc_sli_ring *pring = &phba->sli.ring[LPFC_ELS_RING ]; -struct lpfc_iocbq *piocbq =0 ; +struct lpfc_iocbq *piocbq =NULL ;unsigned long iflags =0 ;char *fail_msg =NULL ;struct lpfc_sglq *sglq;
Signature · 3 lines
1.7.9.5 ---
Acked-by James Smart <[email protected]>
-- james s
Quoted 27 lines · Daeseok Youn
Quoted 1 line
From
9e7478f6e953fac5b2bef0f5abe76fe8dc9e59d1Mon Sep 17 00:00:00 2001From: Daeseok Youn <[email protected]>
Date: Fri, 21 Feb 2014 09:03:32 +0900
Subject: [PATCH] [SCSI] lpfc 8.3.43: use NULL instead of 0 for pointersparse says:
drivers/scsi/lpfc/lpfc_sli.c:16547:37: warning:
Using plain integer as NULL pointerSigned-off-by Daeseok Youn <[email protected]>--- drivers/scsi/lpfc/lpfc_sli.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/scsi/lpfc/lpfc_sli.c +1
-1@@ -16544,7 +16544,7 @@ lpfc_drain_txq(struct lpfc_hba *phba) {LIST_HEAD (completions);struct lpfc_sli_ring *pring = &phba->sli.ring[LPFC_ELS_RING ]; -struct lpfc_iocbq *piocbq =0 ; +struct lpfc_iocbq *piocbq =NULL ;unsigned long iflags =0 ;char *fail_msg =NULL ;struct lpfc_sglq *sglq;