From: Joe Thornber Date: Tue, 24 Jul 2012 23:25:29 +0000 (+1000) Subject: Remove some duplicate initialisation of struct dm_pool_metadata. X-Git-Tag: next-20120725~49^2~9 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=c2861b4d3ad427104f46510de70b25a882f78fa4;p=karo-tx-linux.git Remove some duplicate initialisation of struct dm_pool_metadata. These pmd fields are initialised by both: __format_metadata's calls to dm_btree_empty __write_initial_superblock + __begin_transaction Signed-off-by: Joe Thornber Signed-off-by: Mike Snitzer Signed-off-by: Alasdair G Kergon --- diff --git a/drivers/md/dm-thin-metadata.c b/drivers/md/dm-thin-metadata.c index 7317f1b4ab15..51b97f07aca3 100644 --- a/drivers/md/dm-thin-metadata.c +++ b/drivers/md/dm-thin-metadata.c @@ -512,11 +512,6 @@ static int __format_metadata(struct dm_pool_metadata *pmd) __setup_btree_details(pmd); - pmd->root = 0; - pmd->details_root = 0; - pmd->trans_id = 0; - pmd->flags = 0; - r = dm_btree_empty(&pmd->info, &pmd->root); if (r < 0) goto bad_data_sm;