[SCSI] lpfc: use NULL instead of 0 for pointer
authorDaeseok Youn <daeseok.youn@gmail.com>
Fri, 21 Feb 2014 00:03:32 +0000 (09:03 +0900)
committerJames Bottomley <JBottomley@Parallels.com>
Sat, 15 Mar 2014 17:18:58 +0000 (10:18 -0700)
sparse says:
drivers/scsi/lpfc/lpfc_sli.c:16547:37: warning:
 Using plain integer as NULL pointer

Signed-off-by: Daeseok Youn <daeseok.youn@gmail.com>
Acked-by: James Smart <james.smart@emulex.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/lpfc/lpfc_sli.c

index db2100db259f152c543f8fb8524ed73a0c426df0..6bb51f8e3c1b096a5a2d048d2ff4e878b310c8ef 100644 (file)
@@ -16773,7 +16773,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;