diff options
author | NeilBrown <neilb@suse.de> | 2011-05-23 17:21:36 +1000 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2011-05-23 17:21:36 +1000 |
commit | 3d9d18808772219ee44cae4bf413e7e0b3e3ab30 (patch) | |
tree | 0f5dfc08bb39d395c4d433c0e87a3353b2fe721b /Query.c | |
parent | 9e6d9291275267d3fd4b6d85d7232081f89cd8e2 (diff) | |
download | mdadm-3d9d18808772219ee44cae4bf413e7e0b3e3ab30.tar.gz |
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>
Diffstat (limited to 'Query.c')
-rw-r--r-- | Query.c | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -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) { |