Fix a savce for unreachable code 03/110103/2
authorhyunuktak <hyunuk.tak@samsung.com>
Fri, 2 Dec 2016 02:23:52 +0000 (11:23 +0900)
committerhyunuktak <hyunuk.tak@samsung.com>
Fri, 13 Jan 2017 07:31:08 +0000 (16:31 +0900)
Change-Id: I18c76b532654980a6dffe3e66e954c0154e00ac3
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
packaging/capi-network-wifi-manager.spec
src/network_dbus.c
src/wifi_internal.c

index 54c7ad6..7de095e 100755 (executable)
@@ -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
index 314a17c..8957ffd 100755 (executable)
@@ -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]",
index 0065eaf..27c3f8d 100755 (executable)
@@ -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);