From d71b53d2487ef93fc8a362ecc9fb735222e713e4 Mon Sep 17 00:00:00 2001 From: Subha sree Mohankumar Date: Tue, 14 Nov 2017 14:39:43 +0530 Subject: 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 --- xlators/features/changetimerecorder/src/ctr-helper.c | 3 +-- 1 file changed, 1 insertion(+), 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: -- cgit