Fix this sparse warnings: drivers/scsi/FlashPoint.c:906:9: warning: Using plain integer as NULL pointer drivers/scsi/FlashPoint.c:907:53: warning: Using plain integer as NULL pointer drivers/scsi/FlashPoint.c:922:1: warning: Using plain integer as NULL pointer Signed-off-by: Hannes Eder <hannes@xxxxxxxxxxxxxx> --- v2: fix checkpatch.pl issue. v2.1: other subject, as suggested by Al Viro v3: no need to explicitly initialize the variables, as they are in the .bss section anyway (pointed out by James Bottomley) drivers/scsi/FlashPoint.c | 16 +++++++--------- 1 files changed, 7 insertions(+), 9 deletions(-) diff --git a/drivers/scsi/FlashPoint.c b/drivers/scsi/FlashPoint.c index b898d38..ac67307 100644 --- a/drivers/scsi/FlashPoint.c +++ b/drivers/scsi/FlashPoint.c @@ -902,13 +902,12 @@ static unsigned char FPT_scmachid(unsigned char p_card, static void FPT_autoCmdCmplt(unsigned long p_port, unsigned char p_card); static void FPT_autoLoadDefaultMap(unsigned long p_port); -static struct sccb_mgr_tar_info FPT_sccbMgrTbl[MAX_CARDS][MAX_SCSI_TAR] = - { {{0}} }; -static struct sccb_card FPT_BL_Card[MAX_CARDS] = { {0} }; -static SCCBSCAM_INFO FPT_scamInfo[MAX_SCSI_TAR] = { {{0}} }; -static struct nvram_info FPT_nvRamInfo[MAX_MB_CARDS] = { {0} }; +static struct sccb_mgr_tar_info FPT_sccbMgrTbl[MAX_CARDS][MAX_SCSI_TAR]; +static struct sccb_card FPT_BL_Card[MAX_CARDS]; +static SCCBSCAM_INFO FPT_scamInfo[MAX_SCSI_TAR]; +static struct nvram_info FPT_nvRamInfo[MAX_MB_CARDS]; -static unsigned char FPT_mbCards = 0; +static unsigned char FPT_mbCards; static unsigned char FPT_scamHAString[] = { 0x63, 0x07, 'B', 'U', 'S', 'L', 'O', 'G', 'I', 'C', ' ', 'B', 'T', '-', '9', '3', '0', @@ -916,10 +915,9 @@ static unsigned char FPT_scamHAString[] = 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20 }; -static unsigned short FPT_default_intena = 0; +static unsigned short FPT_default_intena; -static void (*FPT_s_PhaseTbl[8]) (unsigned long, unsigned char) = { -0}; +static void (*FPT_s_PhaseTbl[8]) (unsigned long, unsigned char); /*--------------------------------------------------------------------- * -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html