]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - mdmon.c
mdmon: Stop bothering about md_get_version()
[thirdparty/mdadm.git] / 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) {