]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
dm snapshot: use uninitialized_var
authorAndrew Morton <akpm@linux-foundation.org>
Fri, 8 Feb 2008 02:10:11 +0000 (02:10 +0000)
committerAlasdair G Kergon <agk@redhat.com>
Fri, 8 Feb 2008 02:10:11 +0000 (02:10 +0000)
drivers/md/dm-exception-store.c: In function 'persistent_read_metadata':
drivers/md/dm-exception-store.c:452: warning: 'new_snapshot' may be used uninitialized in this function

Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm-exception-store.c

index 8fe81e1807e0cc9c7e35202990bc419274143335..5bbce29f143ac45f6d358a9b26217b3d30ee1ccd 100644 (file)
@@ -449,7 +449,7 @@ static void persistent_destroy(struct exception_store *store)
 
 static int persistent_read_metadata(struct exception_store *store)
 {
-       int r, new_snapshot;
+       int r, uninitialized_var(new_snapshot);
        struct pstore *ps = get_info(store);
 
        /*