Skip to content

Commit

Permalink
dm snapshot: use uninitialized_var
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
akpm00 authored and kergon committed Feb 8, 2008
1 parent e61290a commit e48b9db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/md/dm-exception-store.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

/*
Expand Down

0 comments on commit e48b9db

Please sign in to comment.