]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
bitmap: Remove use of md_get_version()
authorJes Sorensen <Jes.Sorensen@gmail.com>
Wed, 5 Apr 2017 19:38:48 +0000 (15:38 -0400)
committerJes Sorensen <Jes.Sorensen@gmail.com>
Wed, 5 Apr 2017 19:38:48 +0000 (15:38 -0400)
Signed-off-by: Jes Sorensen <Jes.Sorensen@gmail.com>
bitmap.c

index ccedfd34715cf24e49544bfb7326f1c819464c67..16a6b73550793ad49ea33e6d9f0104174b6afff3 100644 (file)
--- a/bitmap.c
+++ b/bitmap.c
@@ -260,7 +260,7 @@ int ExamineBitmap(char *filename, int brief, struct supertype *st)
        if (!info)
                return rv;
        sb = &info->sb;
-       if (sb->magic != BITMAP_MAGIC && md_get_version(fd) > 0) {
+       if (sb->magic != BITMAP_MAGIC) {
                pr_err("This is an md array.  To view a bitmap you need to examine\n");
                pr_err("a member device, not the array.\n");
                pr_err("Reporting bitmap that would be used if this array were used\n");