aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi
diff options
context:
space:
mode:
authorAndrew Morton <akpm@linux-foundation.org>2008-02-05 02:53:26 -0500
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2008-02-07 19:02:43 -0500
commit8144f2137b7c69055597bb644a3cb6d08ee0de77 (patch)
tree1b967f44271773a8fab3e1d07e5becb874e4893a /drivers/scsi
parenta2c6ef71364e3c7e7509d1bf0e61e8b853744190 (diff)
[SCSI] dc395x: fix uninitialized var warning
drivers/scsi/dc395x.c: In function 'dc395x_init_one': drivers/scsi/dc395x.c:4270: warning: 'ptr' may be used uninitialized in this function Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi')
-rw-r--r--drivers/scsi/dc395x.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/dc395x.c b/drivers/scsi/dc395x.c
index 22ef3716e786..e351db6c0077 100644
--- a/drivers/scsi/dc395x.c
+++ b/drivers/scsi/dc395x.c
@@ -4267,7 +4267,7 @@ static int __devinit adapter_sg_tables_alloc(struct AdapterCtlBlk *acb)
4267 const unsigned srbs_per_page = PAGE_SIZE/SEGMENTX_LEN; 4267 const unsigned srbs_per_page = PAGE_SIZE/SEGMENTX_LEN;
4268 int srb_idx = 0; 4268 int srb_idx = 0;
4269 unsigned i = 0; 4269 unsigned i = 0;
4270 struct SGentry *ptr; 4270 struct SGentry *uninitialized_var(ptr);
4271 4271
4272 for (i = 0; i < DC395x_MAX_SRB_CNT; i++) 4272 for (i = 0; i < DC395x_MAX_SRB_CNT; i++)
4273 acb->srb_array[i].segment_x = NULL; 4273 acb->srb_array[i].segment_x = NULL;