From: Andrew Morton Date: Fri, 8 Feb 2008 02:10:11 +0000 (+0000) Subject: dm snapshot: use uninitialized_var X-Git-Tag: v2.6.25-rc1~280^2~34 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=e48b9db251122b88783844b1d2d69c6780f898ff;p=linux-2.6-omap-h63xx.git 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 Signed-off-by: Alasdair G Kergon --- diff --git a/drivers/md/dm-exception-store.c b/drivers/md/dm-exception-store.c index 8fe81e1807e..5bbce29f143 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); /*