From 117c4560dcd5c7499c17a0bc8e62c62ac39745e1 Mon Sep 17 00:00:00 2001 From: Kamal Mohanan Date: Mon, 25 Sep 2017 11:36:54 +0530 Subject: 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 --- xlators/cluster/ec/src/ec-heal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xlators') 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); -- cgit