From e9ef57a816de7bd2eada5a5eecb53ea7f2c9dba1 Mon Sep 17 00:00:00 2001 From: Jes Sorensen Date: Thu, 6 Oct 2011 16:43:51 +0200 Subject: [PATCH] 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 --- super-intel.c | 2 -- 1 file changed, 2 deletions(-) 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 */ -- 2.47.2