From: hyunuktak Date: Fri, 2 Dec 2016 02:23:52 +0000 (+0900) Subject: Fix a savce for unreachable code X-Git-Tag: submit/tizen/20170210.072732~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ccee47a4458d95b4da997fd4a9da26faf4dc9792;p=platform%2Fcore%2Fapi%2Fwifi-manager.git Fix a savce for unreachable code Change-Id: I18c76b532654980a6dffe3e66e954c0154e00ac3 Signed-off-by: hyunuktak --- diff --git a/packaging/capi-network-wifi-manager.spec b/packaging/capi-network-wifi-manager.spec index 54c7ad6..7de095e 100755 --- a/packaging/capi-network-wifi-manager.spec +++ b/packaging/capi-network-wifi-manager.spec @@ -1,6 +1,6 @@ Name: capi-network-wifi-manager Summary: Network Wi-Fi library in TIZEN C API -Version: 1.0.11 +Version: 1.0.12 Release: 1 Group: System/Network License: Apache-2.0 diff --git a/src/network_dbus.c b/src/network_dbus.c index 314a17c..8957ffd 100755 --- a/src/network_dbus.c +++ b/src/network_dbus.c @@ -1216,7 +1216,7 @@ int _net_dbus_connect_service(const net_wifi_connect_service_info_t *wifi_connec Error = _net_dbus_open_connection(prof_info->ProfileName); //LCOV_EXCL_STOP -error : +error: if (NET_ERR_NONE != Error) { WIFI_LOG(WIFI_ERROR, //LCOV_EXCL_LINE "Failed to request open connection, Error [%s]", diff --git a/src/wifi_internal.c b/src/wifi_internal.c index 0065eaf..27c3f8d 100755 --- a/src/wifi_internal.c +++ b/src/wifi_internal.c @@ -1618,9 +1618,6 @@ int _wifi_save_eap_configurations(const gchar *name, const gchar *passphrase, } } - if (security_type == (WIFI_MANAGER_EAP_TYPE_SIM | WIFI_MANAGER_EAP_TYPE_AKA)) - WIFI_LOG(WIFI_INFO, "security_type: %d", security_type); - config_id = _wifi_config_get_config_id(name, security_type); ssid = __wifi_change_name_to_hexadecimal(name); @@ -1744,24 +1741,24 @@ tizen_profile_t _get_tizen_profile() char *profileName; system_info_get_platform_string("http://tizen.org/feature/profile", &profileName); switch (*profileName) { - case 'm': - case 'M': - profile = TIZEN_PROFILE_MOBILE; - break; - case 'w': - case 'W': - profile = TIZEN_PROFILE_WEARABLE; - break; - case 't': - case 'T': - profile = TIZEN_PROFILE_TV; - break; - case 'i': - case 'I': - profile = TIZEN_PROFILE_IVI; - break; - default: // common or unknown ==> ALL ARE COMMON. - profile = TIZEN_PROFILE_COMMON; + case 'm': + case 'M': + profile = TIZEN_PROFILE_MOBILE; + break; + case 'w': + case 'W': + profile = TIZEN_PROFILE_WEARABLE; + break; + case 't': + case 'T': + profile = TIZEN_PROFILE_TV; + break; + case 'i': + case 'I': + profile = TIZEN_PROFILE_IVI; + break; + default: // common or unknown ==> ALL ARE COMMON. + profile = TIZEN_PROFILE_COMMON; } free(profileName);