From: NeilBrown Date: Mon, 22 Nov 2010 08:35:25 +0000 (+1100) Subject: ddf: remove duplicate container_member setting. X-Git-Tag: mdadm-3.2~310 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8d86ffefdf9c91d1d01e27c671735b7bd5301e66;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 e492b4e5..30e228d3 100644 --- a/super-ddf.c +++ b/super-ddf.c @@ -1470,7 +1470,6 @@ static void getinfo_super_ddf_bvd(struct supertype *st, struct mdinfo *info, cha 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",