]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
Remove unused variable 'superrno' in Query.c
authorNeilBrown <neilb@suse.de>
Mon, 23 May 2011 07:21:36 +0000 (17:21 +1000)
committerNeilBrown <neilb@suse.de>
Mon, 23 May 2011 07:21:36 +0000 (17:21 +1000)
This variable hasn't been used for 5 years!

Reported-by: Mathias Burén <mathias.buren@gmail.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Query.c

diff --git a/Query.c b/Query.c
index f9857d6d9e2ddadd86726db70046324bf4b0ee7d..0b15e286ea80e690d0f1db9aa3a2f68ac4e4faa1 100644 (file)
--- a/Query.c
+++ b/Query.c
@@ -35,7 +35,7 @@ int Query(char *dev)
        int fd = open(dev, O_RDONLY);
        int vers;
        int ioctlerr;
-       int superror, superrno;
+       int superror;
        struct mdinfo info;
        mdu_array_info_t array;
        struct supertype *st = NULL;
@@ -82,10 +82,9 @@ int Query(char *dev)
                       array.spare_disks, array.spare_disks==1?"":"s");
        }
        st = guess_super(fd);
-       if (st) {
+       if (st)
                superror = st->ss->load_super(st, fd, dev);
-               superrno = errno;
-       } else
+       else
                superror = -1;
        close(fd);
        if (superror == 0) {