summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt/glusterd/src/glusterd-utils.c
diff options
context:
space:
mode:
authorMichael Scherer <misc@redhat.com>2017-02-19 15:36:27 +0100
committerAtin Mukherjee <amukherj@redhat.com>2017-02-19 14:43:11 -0500
commitbcea9e274fc13c56431e1b0553661b4048c206ca (patch)
treebd6afb57cbeaa149de78da749563d38979ea698b /xlators/mgmt/glusterd/src/glusterd-utils.c
parent621fedf8aeb3e972db33b3eefa6cbdbef104d6a6 (diff)
Remove deadcode, found by covertyscan
Since ctx_dict is either assigned to the value of aggr, or we goto to out, there is no need for a 2nd goto. Change-Id: I6c4295c61e6ff412ed7b85421dcae13df8088d7c BUG: 1424796 Signed-off-by: Michael Scherer <misc@redhat.com> Reviewed-on: https://review.gluster.org/16672 Smoke: Gluster Build System <jenkins@build.gluster.org> Reviewed-by: Atin Mukherjee <amukherj@redhat.com> Tested-by: Atin Mukherjee <amukherj@redhat.com> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> Reviewed-by: Shyamsundar Ranganathan <srangana@redhat.com> CentOS-regression: Gluster Build System <jenkins@build.gluster.org>
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-utils.c')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-utils.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-utils.c b/xlators/mgmt/glusterd/src/glusterd-utils.c
index 0d2518ac384..11b13af5e65 100644
--- a/xlators/mgmt/glusterd/src/glusterd-utils.c
+++ b/xlators/mgmt/glusterd/src/glusterd-utils.c
@@ -10049,9 +10049,6 @@ glusterd_volume_tier_use_rsp_dict (dict_t *aggr, dict_t *rsp_dict)
goto out;
}
- if (!ctx_dict)
- goto out;
-
ret = dict_get_str (ctx_dict, "volname", &volname);
if (ret) {
gf_msg (this->name, GF_LOG_ERROR, 0,