Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8144f213 authored by Andrew Morton's avatar Andrew Morton Committed by James Bottomley
Browse files

[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: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@HansenPartnership.com>
parent a2c6ef71
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;