be2iscsi: use NULL instead of 0 for pointer
Subsystems (2)
PATCH 1/1 be2iscsi: use NULL instead of 0 for pointer
Quoted 1 line
From
b483ef302f7d77c586949ae170754d589e8a4935Mon Sep 17 00:00:00 2001
From: Daeseok Youn <[email protected]>
Date: Fri, 21 Feb 2014 08:39:08 +0900
Subject: [PATCH] [SCSI] be2iscsi: use NULL instead of 0 for pointer
sparse says:
drivers/scsi/be2iscsi/be_cmds.c:27:32: warning:
Using plain integer as NULL pointerdrivers/scsi/be2iscsi/be_cmds.c:28:34: warning:
Using plain integer as NULL pointerdrivers/scsi/be2iscsi/be_cmds.c:29:34: warning:
Using plain integer as NULL pointer
--- drivers/scsi/be2iscsi/be_cmds.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/scsi/be2iscsi/be_cmds.c +3 -3
@@ -24,9 +24,9 @@int beiscsi_pci_soft_reset (struct beiscsi_hba *phba) {u32 sreset; -u8 *pci_reset_offset =0 ; -u8 *pci_online0_offset =0 ; -u8 *pci_online1_offset =0 ; +u8 *pci_reset_offset =NULL ; +u8 *pci_online0_offset =NULL ; +u8 *pci_online1_offset =NULL ;u32 pconline0 =0 ;u32 pconline1 =0 ;u32 i;
Signature · 1 line
1.7.9.5
-----Original Message-----
From: Daeseok Youn [mailto:[email protected]]
Sent: Thursday, February 20, 2014 5:13 PM
To: [email protected]
Cc: Jayamohan Kallickal; [email protected]; [email protected]
Subject: [PATCH] [SCSI] be2iscsi: use NULL instead of 0 for pointer
Quoted 1 line
From
b483ef302f7d77c586949ae170754d589e8a4935Mon Sep 17 00:00:00 2001
From: Daeseok Youn <[email protected]>
Date: Fri, 21 Feb 2014 08:39:08 +0900
Subject: [PATCH] [SCSI] be2iscsi: use NULL instead of 0 for pointer
sparse says:
drivers/scsi/be2iscsi/be_cmds.c:27:32: warning:
Using plain integer as NULL pointerdrivers/scsi/be2iscsi/be_cmds.c:28:34: warning:
Using plain integer as NULL pointerdrivers/scsi/be2iscsi/be_cmds.c:29:34: warning:
Using plain integer as NULL pointer
--- drivers/scsi/be2iscsi/be_cmds.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/scsi/be2iscsi/be_cmds.c +3 -4
@@ -24,9 +24,9 @@int beiscsi_pci_soft_reset (struct beiscsi_hba *phba) {u32 sreset; -u8 *pci_reset_offset =0 ; -u8 *pci_online0_offset =0 ; -u8 *pci_online1_offset =0 ; +u8 *pci_reset_offset =NULL ; +u8 *pci_online0_offset =NULL ; +u8 *pci_online1_offset =NULL ;u32 pconline0 =0 ;u32 pconline1 =0 ;u32 i; --
1.7.9.5
--
Hi,
This patch didn't apply. Please check for me.
Thanks.
Daeseok Youn
2014-03-12 2:02 GMT+09:00 Jayamohan Kallickal <[email protected]>:
Quoted 49 lines
-----Original Message-----
From: Daeseok Youn [mailto:[email protected]]
Sent: Thursday, February 20, 2014 5:13 PM
To: [email protected]
Cc: Jayamohan Kallickal; [email protected]; [email protected]
Subject: [PATCH] [SCSI] be2iscsi: use NULL instead of 0 for pointerFrom
b483ef302f7d77c586949ae170754d589e8a4935Mon Sep 17 00:00:00 2001
From: Daeseok Youn <[email protected]>
Date: Fri, 21 Feb 2014 08:39:08 +0900
Subject: [PATCH] [SCSI] be2iscsi: use NULL instead of 0 for pointersparse says:
drivers/scsi/be2iscsi/be_cmds.c:27:32: warning:
Using plain integer as NULL pointerdrivers/scsi/be2iscsi/be_cmds.c:28:34: warning:
Using plain integer as NULL pointerdrivers/scsi/be2iscsi/be_cmds.c:29:34: warning:
Using plain integer as NULL pointerSigned-off-by Daeseok Youn <[email protected]>--- drivers/scsi/be2iscsi/be_cmds.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)drivers/scsi/be2iscsi/be_cmds.c +3
-4@@ -24,9 +24,9 @@int beiscsi_pci_soft_reset (struct beiscsi_hba *phba) {u32 sreset; -u8 *pci_reset_offset =0 ; -u8 *pci_online0_offset =0 ; -u8 *pci_online1_offset =0 ; +u8 *pci_reset_offset =NULL ; +u8 *pci_online0_offset =NULL ; +u8 *pci_online1_offset =NULL ;u32 pconline0 =0 ;u32 pconline1 =0 ;u32 i; --1.7.9.5
--