From: Jes Sorensen Date: Thu, 6 Oct 2011 14:43:51 +0000 (+0200) Subject: GCC compile fix: remove calculation of unused variable 'reservation' X-Git-Tag: mdadm-3.2.3~114 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e9ef57a816de7bd2eada5a5eecb53ea7f2c9dba1;p=thirdparty%2Fmdadm.git GCC compile fix: remove calculation of unused variable 'reservation' gcc 4.6.1 doesn't like calculating a variable that then isn't used. Remove it. Signed-off-by: Jes Sorensen Signed-off-by: NeilBrown --- diff --git a/super-intel.c b/super-intel.c index 468aab2e..d4913188 100644 --- a/super-intel.c +++ b/super-intel.c @@ -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 */