[PATCH] GCC compile fix: remove calculation of unused variable "reservation"

[PATCH] GCC compile fix: remove calculation of unused variable "reservation"

am 06.10.2011 16:43:51 von Jes.Sorensen

From: Jes Sorensen

gcc 4.6.1 doesn't like calculating a variable that then isn't
used. Remove it.

Signed-off-by: Jes Sorensen
---
super-intel.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/super-intel.c b/super-intel.c
index ce067a2..33f23c9 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 */
--
1.7.6.4

--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html