mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
dm thin metadata: remove duplicate pmd initialisation
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 <[email protected]> Signed-off-by: Mike Snitzer <[email protected]> Signed-off-by: Alasdair G Kergon <[email protected]>
This commit is contained in:
parent
8801e06945
commit
b793995108
1 changed files with 0 additions and 5 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue