projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1536754
)
[SCSI] lpfc: use NULL instead of 0 for pointer
author
Daeseok Youn
<daeseok.youn@gmail.com>
Fri, 21 Feb 2014 00:03:32 +0000
(09:03 +0900)
committer
James 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
patch
|
blob
|
history
diff --git
a/drivers/scsi/lpfc/lpfc_sli.c
b/drivers/scsi/lpfc/lpfc_sli.c
index db2100db259f152c543f8fb8524ed73a0c426df0..6bb51f8e3c1b096a5a2d048d2ff4e878b310c8ef 100644
(file)
--- a/
drivers/scsi/lpfc/lpfc_sli.c
+++ b/
drivers/scsi/lpfc/lpfc_sli.c
@@
-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;