DDF: ddf_activate_spare: fix gcc -O2 uninitialized warning
At this point 'di' and 'rv' both have the same value. gcc doesn't realise that and a human reader might not either. 'rv' makes more sense too, so use that. Signed-off-by: Martin Wilck <mwilck@arcor.de> Signed-off-by: NeilBrown <neilb@suse.de>
This commit is contained in:
parent
8430855db5
commit
bb925ff08b
|
@ -4959,7 +4959,7 @@ static struct mdinfo *ddf_activate_spare(struct active_array *a,
|
|||
* Create a metadata_update record to update the
|
||||
* phys_refnum and lba_offset values
|
||||
*/
|
||||
vc = find_vdcr(ddf, a->info.container_member, di->disk.raid_disk,
|
||||
vc = find_vdcr(ddf, a->info.container_member, rv->disk.raid_disk,
|
||||
&n_bvd, &vcl);
|
||||
if (vc == NULL)
|
||||
return NULL;
|
||||
|
|
Loading…
Reference in New Issue