]> git.ipfire.org Git - thirdparty/mdadm.git/commit - super-ddf.c
DDF: ddf_activate_spare: fix gcc -O2 uninitialized warning
authorNeilBrown <neilb@suse.de>
Fri, 16 Aug 2013 18:21:55 +0000 (20:21 +0200)
committerNeilBrown <neilb@suse.de>
Wed, 28 Aug 2013 04:41:26 +0000 (14:41 +1000)
commitbb925ff08beda785d42f5ff8a0f082d91c5caad4
treeb4952d60d049095c58ed30ab760c514a8fff9778
parent8430855db52ff3b1f45667c0ea7b32b5cb9a44bc
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>
super-ddf.c