From 35ab841ecff4a887e70b54b1afb01dd42a4e9cd6 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Tue, 23 Apr 2013 11:52:17 +0200 Subject: [PATCH] cleanup: drop zeroing of zallocated data --- lib/config/config.c | 2 -- libdm/libdm-config.c | 4 +--- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/config/config.c b/lib/config/config.c index 8acb87d05..ad02f5fb3 100644 --- a/lib/config/config.c +++ b/lib/config/config.c @@ -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); diff --git a/libdm/libdm-config.c b/libdm/libdm-config.c index 368f9e338..dfd917480 100644 --- a/libdm/libdm-config.c +++ b/libdm/libdm-config.c @@ -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; }