Remove unused variable 'superrno' in Query.c

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>
This commit is contained in:
NeilBrown 2011-05-23 17:21:36 +10:00
parent 9e6d929127
commit 3d9d188087
1 changed files with 3 additions and 4 deletions

View File

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