]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
Remove some duplicate initialisation of struct dm_pool_metadata.
authorJoe Thornber <ejt@redhat.com>
Tue, 24 Jul 2012 23:25:29 +0000 (09:25 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 24 Jul 2012 23:25:29 +0000 (09:25 +1000)
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 <ejt@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm-thin-metadata.c

index 7317f1b4ab152c4cacefc66fd8e6e7a7dec9caaf..51b97f07aca3fbc4a2ae00a776d55f7c08ae7bbb 100644 (file)
@@ -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;