Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757585AbZCETRJ (ORCPT ); Thu, 5 Mar 2009 14:17:09 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757400AbZCETQZ (ORCPT ); Thu, 5 Mar 2009 14:16:25 -0500 Received: from mail-fx0-f176.google.com ([209.85.220.176]:40702 "EHLO mail-fx0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757381AbZCETQY (ORCPT ); Thu, 5 Mar 2009 14:16:24 -0500 From: Hannes Eder Subject: [PATCH v2 09/15] NULL noise: drivers/scsi/FlashPoint.c Date: Thu, 05 Mar 2009 20:16:08 +0100 Message-ID: <20090305191602.30062.71301.stgit@f10box.hanneseder.net> In-Reply-To: <20090305190954.30062.44759.stgit@f10box.hanneseder.net> References: <20090305190954.30062.44759.stgit@f10box.hanneseder.net> User-Agent: StGit/0.14.3.348.gcb02.dirty MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit To: trivial@kernel.org Cc: James Bottomley Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1756 Lines: 44 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 --- v2: fix checkpatch.pl issue. v2.1: other subject, as suggested by Al Viro drivers/scsi/FlashPoint.c | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/scsi/FlashPoint.c b/drivers/scsi/FlashPoint.c index b898d38..9eb2e86 100644 --- a/drivers/scsi/FlashPoint.c +++ b/drivers/scsi/FlashPoint.c @@ -903,8 +903,8 @@ 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} }; + { { {NULL} } }; +static struct sccb_card FPT_BL_Card[MAX_CARDS] = { {NULL} }; static SCCBSCAM_INFO FPT_scamInfo[MAX_SCSI_TAR] = { {{0}} }; static struct nvram_info FPT_nvRamInfo[MAX_MB_CARDS] = { {0} }; @@ -918,8 +918,7 @@ static unsigned char FPT_scamHAString[] = static unsigned short FPT_default_intena = 0; -static void (*FPT_s_PhaseTbl[8]) (unsigned long, unsigned char) = { -0}; +static void (*FPT_s_PhaseTbl[8]) (unsigned long, unsigned char) = {NULL}; /*--------------------------------------------------------------------- * -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/