[PATCH 1/6] DDF: ddf_activate_spare: fix gcc -O2 uninitialized warning

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The warning is spurious, but will break compilation with -O2.

Signed-off-by: Martin Wilck <mwilck@xxxxxxxx>
---
 super-ddf.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/super-ddf.c b/super-ddf.c
index e3b3dca..95972ad 100644
--- a/super-ddf.c
+++ b/super-ddf.c
@@ -4779,7 +4779,7 @@ static struct mdinfo *ddf_activate_spare(struct active_array *a,
 	struct ddf_super *ddf = a->container->sb;
 	int global_ok = 0;
 	struct mdinfo *rv = NULL;
-	struct mdinfo *di;
+	struct mdinfo *di = NULL;
 	struct metadata_update *mu;
 	struct dl *dl;
 	int i;
-- 
1.7.3.4
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux