]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - Kill.c
FIX: resolve make everything compilation error
[thirdparty/mdadm.git] / Kill.c
diff --git a/Kill.c b/Kill.c
index 29a43ea6bf20fe10071d43f4f9262a766e197a88..bac48440bb626a98fc6e7231aaadecd49e0945dc 100644 (file)
--- a/Kill.c
+++ b/Kill.c
@@ -59,10 +59,9 @@ int Kill(char *dev, struct supertype *st, int force, int quiet, int noexcl)
                close(fd);
                return 2;
        }
+       st->ignore_hw_compat = 1;
        rv = st->ss->load_super(st, fd, dev);
-       if (force && rv >= 2)
-               rv = 0; /* ignore bad data in superblock */
-       if (rv== 0 || (force && rv >= 2)) {
+       if (rv == 0 || (force && rv >= 2)) {
                st->ss->free_super(st);
                st->ss->init_super(st, NULL, 0, "", NULL, NULL);
                if (st->ss->store_super(st, fd)) {