]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
mdmon: Stop bothering about md_get_version()
authorJes Sorensen <Jes.Sorensen@gmail.com>
Wed, 5 Apr 2017 19:39:51 +0000 (15:39 -0400)
committerJes Sorensen <Jes.Sorensen@gmail.com>
Wed, 5 Apr 2017 19:39:51 +0000 (15:39 -0400)
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 <Jes.Sorensen@gmail.com>
mdmon.c

diff --git a/mdmon.c b/mdmon.c
index 95e9bbae42a606d3435a97c71a52b73bff8b4591..0955fcc54a888557436d13ba018f65157dec6339 100644 (file)
--- 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) {