mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-06 10:57:46 +00:00
[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>
This commit is contained in:
parent
a2c6ef7136
commit
8144f2137b
1 changed files with 1 additions and 1 deletions
|
@ -4267,7 +4267,7 @@ static int __devinit adapter_sg_tables_alloc(struct AdapterCtlBlk *acb)
|
||||||
const unsigned srbs_per_page = PAGE_SIZE/SEGMENTX_LEN;
|
const unsigned srbs_per_page = PAGE_SIZE/SEGMENTX_LEN;
|
||||||
int srb_idx = 0;
|
int srb_idx = 0;
|
||||||
unsigned i = 0;
|
unsigned i = 0;
|
||||||
struct SGentry *ptr;
|
struct SGentry *uninitialized_var(ptr);
|
||||||
|
|
||||||
for (i = 0; i < DC395x_MAX_SRB_CNT; i++)
|
for (i = 0; i < DC395x_MAX_SRB_CNT; i++)
|
||||||
acb->srb_array[i].segment_x = NULL;
|
acb->srb_array[i].segment_x = NULL;
|
||||||
|
|
Loading…
Reference in a new issue