diff options
author | Michael Scherer <misc@redhat.com> | 2017-02-22 16:21:11 +0100 |
---|---|---|
committer | Shyamsundar Ranganathan <srangana@redhat.com> | 2017-02-26 11:30:31 -0500 |
commit | fe20afb31bdcd92b9c3d41e11872c75ab863f66e (patch) | |
tree | 5325a0c9876b5c8a9a5b2e9d687f6db2cf29c047 /xlators | |
parent | 688abcc90745515f7e143ef8cf1e938239db597c (diff) | |
download | glusterfs-fe20afb31bdcd92b9c3d41e11872c75ab863f66e.tar.gz glusterfs-fe20afb31bdcd92b9c3d41e11872c75ab863f66e.tar.xz glusterfs-fe20afb31bdcd92b9c3d41e11872c75ab863f66e.zip |
Remove deadcode, found by coverty
Since ret value is unchanged since last goto out, this
code is unreachable.
Change-Id: Iff8618739900b44bad6c4e663a4201d9e14cb457
BUG: 789278
Signed-off-by: Michael Scherer <misc@redhat.com>
Reviewed-on: https://review.gluster.org/16713
Smoke: Gluster Build System <jenkins@build.gluster.org>
Reviewed-by: Shyamsundar Ranganathan <srangana@redhat.com>
Tested-by: Michael Scherer <misc@fedoraproject.org>
NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
CentOS-regression: Gluster Build System <jenkins@build.gluster.org>
Diffstat (limited to 'xlators')
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-snapshot.c | 2 |
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 c75a1011fb..5dcadcba08 100644 --- a/xlators/mgmt/glusterd/src/glusterd-snapshot.c +++ b/xlators/mgmt/glusterd/src/glusterd-snapshot.c @@ -892,8 +892,6 @@ glusterd_snapshot_restore (dict_t *dict, char **op_errstr, dict_t *rsp_dict) cds_list_del_init (&parent_volinfo->vol_list); glusterd_volinfo_unref (parent_volinfo); - if (ret) - goto out; } ret = 0; |