linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] GCC compile fix: remove calculation of unused variable 'reservation'
@ 2011-10-06 14:43 Jes.Sorensen
  2011-10-26 12:51 ` Jes Sorensen
  0 siblings, 1 reply; 5+ messages in thread
From: Jes.Sorensen @ 2011-10-06 14:43 UTC (permalink / raw)
  To: neilb; +Cc: linux-raid

From: Jes Sorensen <Jes.Sorensen@redhat.com>

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>
---
 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


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-10-27  8:01 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-06 14:43 [PATCH] GCC compile fix: remove calculation of unused variable 'reservation' Jes.Sorensen
2011-10-26 12:51 ` Jes Sorensen
2011-10-27  4:33   ` NeilBrown
2011-10-27  7:46     ` Czarnowska, Anna
2011-10-27  8:01       ` NeilBrown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).