summaryrefslogtreecommitdiffstats
path: root/xlators/features
diff options
context:
space:
mode:
authorSubha sree Mohankumar <smohanku@redhat.com>2017-11-14 14:39:43 +0530
committerShyamsundar Ranganathan <srangana@redhat.com>2017-11-17 16:51:26 +0000
commitd71b53d2487ef93fc8a362ecc9fb735222e713e4 (patch)
tree7925e961d4edd14f8de78285f3902f9478beaad0 /xlators/features
parentd1d9a03a06bead6d62becb1e563765222fbcb1bb (diff)
features/changetimerecorder:unused value coverity fix
Problem : Overwritting the value of ret in extract_db_params. Fix : The value is used in out. Change-Id: Ib7bee999c6f19e0c83ef47deab61835977162bd5 BUG: 789278 Signed-off-by: Subha sree Mohankumar <smohanku@redhat.com>
Diffstat (limited to 'xlators/features')
-rw-r--r--xlators/features/changetimerecorder/src/ctr-helper.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/xlators/features/changetimerecorder/src/ctr-helper.c b/xlators/features/changetimerecorder/src/ctr-helper.c
index 263eb58db6f..822526ca833 100644
--- a/xlators/features/changetimerecorder/src/ctr-helper.c
+++ b/xlators/features/changetimerecorder/src/ctr-helper.c
@@ -235,8 +235,7 @@ int extract_db_params(xlator_t *this, dict_t *params_dict,
case GFDB_HASH_FILE_STORE:
case GFDB_INVALID_DB:
case GFDB_DB_END:
- ret = -1;
- break;
+ goto out;
}
ret = 0;
out: