]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - Query.c
Drop the superblock arg from all metadata methods.
[thirdparty/mdadm.git] / Query.c
diff --git a/Query.c b/Query.c
index 19b2ce5e621c226445003cb5ec631b6b0371142b..080296425af6bf41ee1adb69a1253f03a120af7e 100644 (file)
--- a/Query.c
+++ b/Query.c
@@ -43,7 +43,6 @@ int Query(char *dev)
        int superror, superrno;
        struct mdinfo info;
        mdu_array_info_t array;
-       void *super;
        struct supertype *st = NULL;
 
        unsigned long long larray_size;
@@ -89,14 +88,14 @@ int Query(char *dev)
        }
        st = guess_super(fd);
        if (st) {
-               superror = st->ss->load_super(st, fd, &super, dev);
+               superror = st->ss->load_super(st, fd, dev);
                superrno = errno;
        } else
                superror = -1;
        close(fd);
        if (superror == 0) {
                /* array might be active... */
-               st->ss->getinfo_super(st, &info, super);
+               st->ss->getinfo_super(st, &info);
                if (st->ss->major == 0) {
                        mddev = get_md_name(info.array.md_minor);
                        disc.number = info.disk.number;