[CID-44367] Remove deadcode 09/153609/2 accepted/tizen/unified/20171011.065906 submit/tizen/20171010.084928
authortaesub kim <taesub.kim@samsung.com>
Fri, 29 Sep 2017 02:15:04 +0000 (11:15 +0900)
committertaesub kim <taesub.kim@samsung.com>
Fri, 29 Sep 2017 02:22:21 +0000 (11:22 +0900)
Change-Id: Iaa2f5a6479bf1d6b5d290f91f4f1eea0eae1f17a
Signed-off-by: Taesub Kim <taesub.kim@samsung.com>
packaging/capi-network-connection.spec
src/connection_profile.c

index 0927c0f..a450a75 100755 (executable)
@@ -1,6 +1,6 @@
 Name:          capi-network-connection
 Summary:       Network Connection library in TIZEN C API
-Version:       1.0.103
+Version:       1.0.104
 Release:       1
 Group:         System/Network
 License:       Apache-2.0
index de4c037..2779923 100755 (executable)
@@ -269,20 +269,15 @@ EXPORT_API int connection_profile_create(connection_profile_type_e type, const c
        if (profile_info == NULL)
                return CONNECTION_ERROR_OUT_OF_MEMORY;
 
-       switch (type) {
-       case CONNECTION_PROFILE_TYPE_CELLULAR:
+       if (type == CONNECTION_PROFILE_TYPE_CELLULAR) {
                if (keyword == NULL) {
                        CONNECTION_LOG(CONNECTION_ERROR, "Invalid parameter");
                        g_free(profile_info);
                        return CONNECTION_ERROR_INVALID_PARAMETER;
                }
                __profile_init_cellular_profile(profile_info, keyword);
-               break;
-       case CONNECTION_PROFILE_TYPE_WIFI:
+       } else if (type ==  CONNECTION_PROFILE_TYPE_WIFI) {
                __profile_init_wifi_profile(profile_info);
-               break;
-       default:
-               break;
        }
 
        *profile = (connection_profile_h)profile_info;