Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=e48b9db251122b88783844b1d2d69c6780f898ff
Commit:     e48b9db251122b88783844b1d2d69c6780f898ff
Parent:     e61290a4a23c3f85f883f0c8cc7c967501f82a57
Author:     Andrew Morton <[EMAIL PROTECTED]>
AuthorDate: Fri Feb 8 02:10:11 2008 +0000
Committer:  Alasdair G Kergon <[EMAIL PROTECTED]>
CommitDate: Fri Feb 8 02:10:11 2008 +0000

    dm snapshot: use uninitialized_var
    
    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 <[EMAIL PROTECTED]>
    Signed-off-by: Alasdair G Kergon <[EMAIL PROTECTED]>
---
 drivers/md/dm-exception-store.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/md/dm-exception-store.c b/drivers/md/dm-exception-store.c
index 8fe81e1..5bbce29 100644
--- a/drivers/md/dm-exception-store.c
+++ b/drivers/md/dm-exception-store.c
@@ -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);
 
        /*
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to