From: Jes Sorensen Date: Wed, 5 Apr 2017 19:39:51 +0000 (-0400) Subject: mdmon: Stop bothering about md_get_version() X-Git-Tag: mdadm-4.1-rc1~203 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=15d924d363a2bc02aa4a489241333be3d7820978;p=thirdparty%2Fmdadm.git mdmon: Stop bothering about md_get_version() If anyone has a kernel with md driver older than 0.90.03 they will also know where to find older versions of mdadm. Signed-off-by: Jes Sorensen --- diff --git a/mdmon.c b/mdmon.c index 95e9bbae..0955fcc5 100644 --- a/mdmon.c +++ b/mdmon.c @@ -408,10 +408,6 @@ static int mdmon(char *devnm, int must_fork, int takeover) pr_err("%s: %s\n", devnm, strerror(errno)); return 1; } - if (md_get_version(mdfd) < 0) { - pr_err("%s: Not an md device\n", devnm); - return 1; - } /* Fork, and have the child tell us when they are ready */ if (must_fork) {