From 37772e8e94400a60aedcd6713b1abedb1eb9ea7f Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Sun, 19 Feb 2017 16:38:24 +0100 Subject: Remove the useless goto ret cannot be 0, since the error code for gf_store_save_value is -1. And the label of the goto is just after the goto, so that's deadcode. Change-Id: I227bca41f4d0755891b8e6e0f4cb2ce004615a35 BUG: 1424809 Signed-off-by: Michael Scherer Reviewed-on: https://review.gluster.org/16674 Smoke: Gluster Build System Reviewed-by: Shyamsundar Ranganathan Tested-by: Nigel Babu Reviewed-by: Atin Mukherjee NetBSD-regression: NetBSD Build System Reviewed-by: Prashanth Pai CentOS-regression: Gluster Build System --- xlators/mgmt/glusterd/src/glusterd-store.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'xlators/mgmt/glusterd/src/glusterd-store.c') diff --git a/xlators/mgmt/glusterd/src/glusterd-store.c b/xlators/mgmt/glusterd/src/glusterd-store.c index 710a92c98c3..740354304c5 100644 --- a/xlators/mgmt/glusterd/src/glusterd-store.c +++ b/xlators/mgmt/glusterd/src/glusterd-store.c @@ -246,10 +246,6 @@ glusterd_store_volinfo_brick_fname_write (int vol_fd, glusterd_store_brickinfofname_set (brickinfo, brickfname, sizeof (brickfname)); ret = gf_store_save_value (vol_fd, key, brickfname); - if (ret) - goto out; - -out: return ret; } -- cgit