summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt/glusterd/src/glusterd-op-sm.c
diff options
context:
space:
mode:
authorSanju Rakonde <srakonde@redhat.com>2017-11-01 17:36:10 +0530
committerAmar Tumballi <amarts@redhat.com>2017-11-02 12:20:59 +0000
commitf9eedcad0127705c685e8b192726e46b170f00d1 (patch)
treeadead7d52f75d79884f98b6ffca09eb9c4491036 /xlators/mgmt/glusterd/src/glusterd-op-sm.c
parent84f4f68bfafd3f7fc14a1e83e0272579e5cc1519 (diff)
glusterd: UNUSED VALUE coverity fix
ret is overwritten before it is used, adding a line for checking its value solves it. Change-Id: I4ac4ad33bc236d9294da64b19d16b3bc9bb8807b BUG: 789278 Signed-off-by: Sanju Rakonde <srakonde@redhat.com>
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-op-sm.c')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-op-sm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-op-sm.c b/xlators/mgmt/glusterd/src/glusterd-op-sm.c
index 7b4825dd82e..855ecd2701c 100644
--- a/xlators/mgmt/glusterd/src/glusterd-op-sm.c
+++ b/xlators/mgmt/glusterd/src/glusterd-op-sm.c
@@ -629,6 +629,8 @@ glusterd_brick_op_build_payload (glusterd_op_t op, glusterd_brickinfo_t *brickin
if (ret)
goto out;
ret = glusterd_volinfo_find (volname, &volinfo);
+ if (ret)
+ goto out;
if (volinfo->type == GF_CLUSTER_TYPE_TIER)
snprintf (name, 1024, "%s-tier-dht", volname);
else