]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
Fix a warning about an uninitialised variable.
authorNeil Brown <neilb@suse.de>
Thu, 22 Feb 2007 03:59:16 +0000 (14:59 +1100)
committerNeil Brown <neilb@suse.de>
Thu, 22 Feb 2007 03:59:16 +0000 (14:59 +1100)
The case that doesn't initialise it is impossible,
so just return with an error..

ChangeLog
super1.c

index 2f6a6e55f0d1ffb4a1c5e6956d827d0900f58b42..3e10eb40acf270f65cd4428ce527d8a4657c1af1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
 Changes Prior to this release
     -   --monitor was producing some meaningless warnings due to a bug.
+    -   Fix some compiler warnings.
 
 Changes Prior to 2.6 release
     -   Fixed UUID printing in "--detail --brief" for version1 metadata.
index a480f21cf3386fbdfdd059238b37804f64147b70..42efc759685b43e284f5d2885d299566cd9dae13 100644 (file)
--- a/super1.c
+++ b/super1.c
@@ -1203,6 +1203,8 @@ add_internal_bitmap1(struct supertype *st, void *sbv,
                        }
                }
                break;
+       default:
+               return 0;
        }
 
        if (chunk == UnSet && room > 128*2)