[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.LFD.0.999.0709030152260.29617@enigma.security.iitk.ac.in>
Date: Mon, 3 Sep 2007 01:53:12 +0530 (IST)
From: Satyam Sharma <satyam@...radead.org>
To: Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
cc: James Bottomley <james.bottomley@...eleye.com>,
Oliver Neukum <oliver@...kum.name>, linux-scsi@...r.kernel.org
Subject: [PATCH -mm] DC395x SCSI driver: Shut up uninitialized variable build
warning
drivers/scsi/dc395x.c: In function ‘dc395x_init_one’:
drivers/scsi/dc395x.c:4272: warning: ‘ptr’ may be used uninitialized in this function
has been verified to be a bogus warning. Let's shut it up.
Signed-off-by: Satyam Sharma <satyam@...radead.org>
---
drivers/scsi/dc395x.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- linux-2.6.23-rc4-mm1/drivers/scsi/dc395x.c‾fix 2007-09-02 20:57:51.000000000 +0530
+++ linux-2.6.23-rc4-mm1/drivers/scsi/dc395x.c 2007-09-02 21:10:49.000000000 +0530
@@ -4269,7 +4269,7 @@ static int __devinit adapter_sg_tables_a
const unsigned srbs_per_page = PAGE_SIZE/SEGMENTX_LEN;
int srb_idx = 0;
unsigned i = 0;
- struct SGentry *ptr;
+ struct SGentry * uninitialized_var(ptr);
for (i = 0; i < DC395x_MAX_SRB_CNT; i++)
acb->srb_array[i].segment_x = NULL;
Powered by blists - more mailing lists