]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
GCC compile fix: remove calculation of unused variable 'reservation'
authorJes Sorensen <Jes.Sorensen@redhat.com>
Thu, 6 Oct 2011 14:43:51 +0000 (16:43 +0200)
committerNeilBrown <neilb@suse.de>
Thu, 27 Oct 2011 04:27:20 +0000 (15:27 +1100)
gcc 4.6.1 doesn't like calculating a variable that then isn't
used. Remove it.

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: NeilBrown <neilb@suse.de>
super-intel.c

index 468aab2e9e1bec5c1b09349ac7c8b2fb08240719..d4913188aaa913cc0163bb6b2e842271f7502217 100644 (file)
@@ -989,7 +989,6 @@ static unsigned long long min_acceptable_spare_size_imsm(struct supertype *st)
        struct extent *e;
        int i;
        unsigned long long rv = 0;
-       __u32 reservation;
 
        if (!super)
                return rv;
@@ -1007,7 +1006,6 @@ static unsigned long long min_acceptable_spare_size_imsm(struct supertype *st)
                continue;
        if (i > 0)
                rv = e[i-1].start + e[i-1].size;
-       reservation = __le32_to_cpu(dl->disk.total_blocks) - e[i].start;
        free(e);
 
        /* add the amount of space needed for metadata */