[ITC][connection][Non-ACR][Fix incorrect precondition check] 36/224736/1
authorJaehyun Kim <jeik01.kim@samsung.com>
Wed, 12 Feb 2020 13:39:29 +0000 (22:39 +0900)
committerJaehyun Kim <jeik01.kim@samsung.com>
Wed, 12 Feb 2020 13:39:29 +0000 (22:39 +0900)
Change-Id: Id9b9874430823e7db2356bc274592e8e71c66016
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
src/itc/connection/ITs-connection-ethernet-profile.c

index 4f3aadcb7ae48789668cefa8a45b5d5eeb5e1f07..a0d938456f88ad929ad52388a57c4aaf01be163f 100755 (executable)
@@ -40,7 +40,7 @@ void ITs_connection_ethernet_profile_startup(void)
        g_bFeatureSupported = true;
        g_bFeatureMismatch = false;
        g_bFeatureNotSupported = false;
-       
+
        bool bTelFeatureSupported = TCTCheckSystemInfoFeatureSupported(TELEPHONY_FEATURE, API_NAMESPACE);
        bool bWifiFeatureSupported = TCTCheckSystemInfoFeatureSupported(WIFI_FEATURE, API_NAMESPACE);
        bool bBtFeatureSupported = TCTCheckSystemInfoFeatureSupported(TETHERING_BLUETOOTH_FEATURE, API_NAMESPACE);
@@ -85,7 +85,7 @@ void ITs_connection_ethernet_profile_cleanup(void)
        // Null initialization of pointer
        int nRet = 0;
 
-       if ( g_nConnectionEthernetPreconditionError && (g_hConenctionHandleEth != NULL) )
+       if ( !g_nConnectionEthernetPreconditionError && (g_hConenctionHandleEth != NULL) )
        {
                nRet = connection_destroy(g_hConenctionHandleEth);
                if ( nRet != CONNECTION_ERROR_NONE )
@@ -152,7 +152,7 @@ int ITc_connection_set_unset_ethernet_cable_state_changed_cb_p(void)
        if ( bEthFeatureSupported )
        {
                PRINT_RESULT(CONNECTION_ERROR_NONE, nRet, "connection_unset_ethernet_cable_state_chaged_cb", ConnectionGetError(nRet));
-       } 
+       }
        else
        {
                PRINT_RESULT(CONNECTION_ERROR_NOT_SUPPORTED, nRet, "connection_unset_ethernet_cable_state_chaged_cb", ConnectionGetError(nRet));
@@ -310,5 +310,5 @@ int ITc_connection_get_mac_address_p(void)
 
        return 0;
 }
-/** @} */ 
+/** @} */
 /** @} */