1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

cleanup: drop zeroing of zallocated data

This commit is contained in:
Zdenek Kabelac 2013-04-23 11:52:17 +02:00
parent a12f92c494
commit 35ab841ecf
2 changed files with 1 additions and 5 deletions

View File

@ -67,8 +67,6 @@ struct dm_config_tree *config_file_open(const char *filename, int keep_open)
cf = dm_pool_zalloc(cft->mem, sizeof(struct config_file));
if (!cf) goto fail;
cf->timestamp = 0;
cf->exists = 0;
cf->keep_open = keep_open;
dm_config_set_custom(cft, cf);

View File

@ -105,10 +105,8 @@ struct dm_config_tree *dm_config_create(void)
dm_pool_destroy(mem);
return 0;
}
cft->root = NULL;
cft->cascade = NULL;
cft->custom = NULL;
cft->mem = mem;
return cft;
}