From c46ee927870593e7edb1c2bb1c620b53d6ce2e2d Mon Sep 17 00:00:00 2001 From: dyamy-lee Date: Fri, 13 Sep 2024 13:40:42 +0900 Subject: [PATCH] remove the function which is calling duplicated in one api tts_config_mgr_update_personal_voice() api is called twice. When it was updated about checking duplication, this api was remained wrong location. So, this patch removes it. Change-Id: Iacf275a6af332591e665a68c82f523949dc131c7 --- server/ttsd_config.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/server/ttsd_config.c b/server/ttsd_config.c index a9874676..aa03f8c4 100644 --- a/server/ttsd_config.c +++ b/server/ttsd_config.c @@ -266,6 +266,7 @@ int ttsd_config_set_instant_reprepare_client(const unsigned int uid) int ttsd_config_update_personal_voice(const char* language, const char* unique_id, const char* display_name, const char* device_name, void* user_data) { + int ret = 0; char current_engine[1024] = {'\0', }; if (user_data) { strncpy(current_engine, (char*)user_data, sizeof(current_engine) - 1); @@ -277,8 +278,6 @@ int ttsd_config_update_personal_voice(const char* language, const char* unique_i SLOG(LOG_DEBUG, tts_tag(), "[Server] TTS Current Engine(%s)", current_engine); - int ret = tts_config_mgr_update_personal_voice(current_engine, language, unique_id, display_name, device_name); - bool matched = false; ret = tts_config_mgr_check_duplicate_personal_voice(current_engine, unique_id, &matched); if (0 != ret) { -- 2.34.1