Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <akpm@linux-foundation.org>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>

authored by

Andrew Morton and committed by
Alasdair G Kergon
e48b9db2 e61290a4

+1 -1
+1 -1
drivers/md/dm-exception-store.c
··· 449 449 450 450 static int persistent_read_metadata(struct exception_store *store) 451 451 { 452 - int r, new_snapshot; 452 + int r, uninitialized_var(new_snapshot); 453 453 struct pstore *ps = get_info(store); 454 454 455 455 /*