From: Jes Sorensen Date: Wed, 5 Apr 2017 19:47:37 +0000 (-0400) Subject: Assemble/Assemble: Get rid of last use of md_get_version() X-Git-Tag: mdadm-4.1-rc1~200 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b6e60be6281a2a4ec326a72de114867797a42d7f;p=thirdparty%2Fmdadm.git Assemble/Assemble: Get rid of last use of md_get_version() At this point in the code, we know we have a valid array, and any recent kernel will return 9003, so no point in querying the kernel for this. Signed-off-by: Jes Sorensen --- diff --git a/Assemble.c b/Assemble.c index fa5fdbee..0db428f0 100644 --- a/Assemble.c +++ b/Assemble.c @@ -1901,7 +1901,7 @@ int assemble_container_content(struct supertype *st, int mdfd, c->readonly && content->text_version[0] == '/') content->text_version[0] = '-'; - if (sysfs_set_array(content, md_get_version(mdfd)) != 0) { + if (sysfs_set_array(content, 9003) != 0) { sysfs_free(sra); return 1; }