From: dyamy-lee Date: Thu, 15 Sep 2022 08:42:55 +0000 (+0900) Subject: remove wrapper of checking connection in retry function X-Git-Tag: accepted/tizen/unified/20220927.132357~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fc30978b27023d4fe58c8ff54f7b063ba406bebb;p=platform%2Fcore%2Fuifw%2Fmmi-framework.git remove wrapper of checking connection in retry function retry function is called when it is alreday not connected. So, this remove re-checking connected value, for readability and clear logic Change-Id: Ifb7ac64d23cdf66d5f4cacf547b7ebf28a6783fd --- diff --git a/src/mmi-ipc.c b/src/mmi-ipc.c index 5872c08..2da72b6 100644 --- a/src/mmi-ipc.c +++ b/src/mmi-ipc.c @@ -68,13 +68,10 @@ int mmi_ipc_retry_connection(rpc_port_proxy_mmi_h h) { LOGI("Retry connection"); - if (mmi_ipc_is_connected() == false) { - LOGE("Not Connected."); - int ret = rpc_port_proxy_mmi_connect_sync(h); - if (ret != RPC_PORT_ERROR_NONE) { - LOGE("Fail to retry connection(%d)", ret); - return MMI_ERROR_OPERATION_FAILED; - } + int ret = rpc_port_proxy_mmi_connect_sync(h); + if (ret != RPC_PORT_ERROR_NONE) { + LOGE("Fail to retry connection(%d)", ret); + return MMI_ERROR_OPERATION_FAILED; } return MMI_ERROR_NONE;