summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSubha sree Mohankumar <smohanku@redhat.com>2017-09-25 11:49:16 +0530
committerJeff Darcy <jeff@pl.atyp.us>2017-09-26 13:05:28 +0000
commit83d2bf8815bb4d79349659a7d5b9df822acd5430 (patch)
tree22e0a2b6b80be39d0efc8a5cd1054d1a55db3f0e
parent490f27c44f0a4feb8c52fc31f28163310690e0a1 (diff)
Coverity Issue Fix : CHECKED_RETURN
Issue :Event check_return: Calling "ec_dict_set_number" without checking return value. Fix : Type casted the return value of the function "ec_dict_set_number" to void. Change-Id: Id97034f9b1b8591536d63dca680ca7c7a9c4fcc3 BUG: 789278 Signed-off-by: Subha sree Mohankumar <smohanku@redhat.com>
-rw-r--r--xlators/cluster/ec/src/ec-common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/cluster/ec/src/ec-common.c b/xlators/cluster/ec/src/ec-common.c
index f6715eb1374..7ee0666c6c9 100644
--- a/xlators/cluster/ec/src/ec-common.c
+++ b/xlators/cluster/ec/src/ec-common.c
@@ -2023,7 +2023,7 @@ ec_update_size_version(ec_lock_link_t *link, uint64_t *version,
if ((lock->loc.inode->ia_type == IA_IFREG) && !ctx->have_config) {
/* A failure requesting this xattr is ignored because it's not
* absolutely required right now. */
- ec_dict_set_number(dict, EC_XATTR_CONFIG, 0);
+ (void)ec_dict_set_number(dict, EC_XATTR_CONFIG, 0);
}
fop->frame->root->uid = 0;