From: Suyeon Hwang Date: Wed, 27 Sep 2017 02:54:55 +0000 (+0900) Subject: Remove null check from stte_send_error X-Git-Tag: submit/tizen_4.0/20171010.054404^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2aeedeb95096c5bd8470d0a44f5e6cb6b4826181;p=platform%2Fcore%2Fuifw%2Fstt.git Remove null check from stte_send_error Change-Id: I8ad7790c5cce3c713559cb3e2b9e5a7de5b95881 Signed-off-by: Suyeon Hwang (cherry picked from commit 04a1498f400208677a3232d51d3ad479dd03440b) --- diff --git a/common/stt_engine.c b/common/stt_engine.c index ab6a4bc..9dfd996 100644 --- a/common/stt_engine.c +++ b/common/stt_engine.c @@ -781,10 +781,6 @@ int stt_engine_send_result(stte_result_event_e event, const char* type, const ch int stt_engine_send_error(stte_error_e error, const char* msg) { - if (NULL == msg) { - SLOG(LOG_ERROR, stt_tag(), "[Engine ERROR] Invalid parameter"); - } - int ret = STTE_ERROR_NONE; ret = sttd_engine_agent_send_error(error, msg); if (0 != ret) { diff --git a/server/sttd_dbus.c b/server/sttd_dbus.c index 99a29a2..a16e12c 100644 --- a/server/sttd_dbus.c +++ b/server/sttd_dbus.c @@ -350,11 +350,6 @@ int sttdc_send_result(int uid, int event, const char** data, int data_count, con int sttdc_send_error_signal(int uid, int reason, const char *err_msg) { - if (NULL == err_msg) { - SLOG(LOG_ERROR, TAG_STTD, "[Dbus ERROR] Input parameter is NULL"); - return STTD_ERROR_INVALID_PARAMETER; - } - int pid = sttd_client_get_pid(uid); if (0 > pid) { SLOG(LOG_ERROR, TAG_STTD, "[Dbus ERROR] pid is NOT valid"); diff --git a/server/stte.c b/server/stte.c index 2a00e12..e60245f 100755 --- a/server/stte.c +++ b/server/stte.c @@ -75,10 +75,6 @@ int stte_send_result(stte_result_event_e event, const char* type, const char** r int stte_send_error(stte_error_e error, const char* msg) { - if (NULL == msg) { - SLOG(LOG_ERROR, TAG_STTD, "[Server ERROR] Invalid parameter"); - } - int ret = STTE_ERROR_NONE; ret = stt_engine_send_error(error, msg); if (0 != ret) {