]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[SCSI] dc395x: fix uninitialized var warning
authorAndrew Morton <akpm@linux-foundation.org>
Tue, 5 Feb 2008 07:53:26 +0000 (23:53 -0800)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Fri, 8 Feb 2008 00:02:43 +0000 (18:02 -0600)
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>
drivers/scsi/dc395x.c

index 22ef3716e7864168977b4e7967358bf0b6496b1a..e351db6c00779873a6f94bb7002118501c8b847c 100644 (file)
@@ -4267,7 +4267,7 @@ static int __devinit adapter_sg_tables_alloc(struct AdapterCtlBlk *acb)
        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;