summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKamal Mohanan <kmohanan@redhat.com>2017-09-25 11:36:54 +0530
committerXavier Hernandez <jahernan@redhat.com>2017-10-16 08:17:59 +0000
commit117c4560dcd5c7499c17a0bc8e62c62ac39745e1 (patch)
tree3c154791a1cfbc532c505f86d3d58c5f2a712946
parentd88be3bc29dbd1eaa393802f3c98e188fe5287c8 (diff)
cluster/ec: Coverity Fix UNUSED_VALUE in ec_create_name
Problem: The value returned by cluster_mkdir is assigned to ret at ec-heal.c:1076. But this value is overwritten before it can be used. Solution: The return value of cluster_mkdir is ignored. It is not assigned to ret. Change-Id: Iee6b8d8b04e0bd800dd30d2c24cab755b9e63443 BUG: 789278 Signed-off-by: Kamal Mohanan <kmohanan@redhat.com>
-rw-r--r--xlators/cluster/ec/src/ec-heal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/cluster/ec/src/ec-heal.c b/xlators/cluster/ec/src/ec-heal.c
index fd8c9024a48..9bf7ab8e597 100644
--- a/xlators/cluster/ec/src/ec-heal.c
+++ b/xlators/cluster/ec/src/ec-heal.c
@@ -1151,7 +1151,7 @@ ec_create_name (call_frame_t *frame, ec_t *ec, inode_t *parent, char *name,
switch (ia->ia_type) {
case IA_IFDIR:
ec_set_new_entry_dirty (ec, &loc, ia, frame, ec->xl, on);
- ret = cluster_mkdir (ec->xl_list, enoent, ec->nodes,
+ (void) cluster_mkdir (ec->xl_list, enoent, ec->nodes,
replies, output, frame, ec->xl, &loc,
st_mode_from_ia (ia->ia_prot,
ia->ia_type), 0, xdata);