summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt/glusterd/src/glusterd-snapshot.c
diff options
context:
space:
mode:
authorPrasanna Kumar Kalever <prasanna.kalever@redhat.com>2015-08-15 01:06:32 +0530
committerAtin Mukherjee <amukherj@redhat.com>2016-03-24 02:28:22 -0700
commit148ed4fd15b4de78e4d16b9f41836c9a2b003246 (patch)
tree6a5089212184d3e85cd7f31eab902fd814346d16 /xlators/mgmt/glusterd/src/glusterd-snapshot.c
parentf14e800cd9bfe34822e1530f71f233bfe4fb04c0 (diff)
glusterd: remove unused large memory/buffer allocations
This patch cleans dead buffer allocations which are never used in the code. Change-Id: I8c55837434fd5bf9dde9fb7b070fdefbf64cf4a3 BUG: 1253828 Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com> Reviewed-on: http://review.gluster.org/11928 Smoke: Gluster Build System <jenkins@build.gluster.com> CentOS-regression: Gluster Build System <jenkins@build.gluster.com> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> Reviewed-by: Atin Mukherjee <amukherj@redhat.com>
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-snapshot.c')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-snapshot.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-snapshot.c b/xlators/mgmt/glusterd/src/glusterd-snapshot.c
index 18ee3743f67..4e401b0f76c 100644
--- a/xlators/mgmt/glusterd/src/glusterd-snapshot.c
+++ b/xlators/mgmt/glusterd/src/glusterd-snapshot.c
@@ -2828,7 +2828,6 @@ out:
int32_t
glusterd_lvm_snapshot_remove (dict_t *rsp_dict, glusterd_volinfo_t *snap_vol)
{
- struct mntent save_entry = {0,};
int32_t brick_count = -1;
int32_t ret = -1;
int32_t err = 0;
@@ -6977,7 +6976,6 @@ glusterd_snapshot_config_commit (dict_t *dict, char **op_errstr,
char *volname = NULL;
xlator_t *this = NULL;
int ret = -1;
- char err_str[PATH_MAX] = {0,};
glusterd_conf_t *conf = NULL;
int config_command = 0;
uint64_t hard_limit = 0;