From: NeilBrown Date: Mon, 22 Nov 2010 08:35:25 +0000 (+1100) Subject: ddf: remove duplicate container_member setting. X-Git-Tag: mdadm-3.1.5~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=37e430d163f71417f50371cb2871e4828490ed7a;p=thirdparty%2Fmdadm.git ddf: remove duplicate container_member setting. We were setting ->container_member twice in ddf get_info. Once to currentconf->vcnum, once to atoi(st->subarray). Both should be the same. For consistency with super-intel, use the first. Signed-off-by: NeilBrown --- diff --git a/super-ddf.c b/super-ddf.c index d06c8058..35515c4b 100644 --- a/super-ddf.c +++ b/super-ddf.c @@ -1457,7 +1457,6 @@ static void getinfo_super_ddf_bvd(struct supertype *st, struct mdinfo *info) uuid_from_super_ddf(st, info->uuid); - info->container_member = atoi(st->subarray); info->array.major_version = -1; info->array.minor_version = -2; sprintf(info->text_version, "/%s/%s",