dev-mornfall-activate - cleanup: drop zeroing of zallocated data
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=35ab841ecff4a887e70b54b1afb01dd42a4e9cd6 Commit: 35ab841ecff4a887e70b54b1afb01dd42a4e9cd6 Parent: a12f92c494a60fe6e6c9e133aa879bd0d0da069a Author: Zdenek Kabelac <[email protected]> AuthorDate: Tue Apr 23 11:52:17 2013 +0200 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Tue Apr 23 12:27:33 2013 +0200
cleanup: drop zeroing of zallocated data
--- lib/config/config.c | 2 -- libdm/libdm-config.c | 4 +--- 2 files changed, 1 insertions(+), 5 deletions(-)
lib/config/config.c +0 -2
@@ -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);
libdm/libdm-config.c +1 -3
@@ -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; }