Modify download_set_network_type() 48/52748/1 accepted/tizen/mobile/20151218.085552 accepted/tizen/tv/20151218.085357 accepted/tizen/wearable/20151218.085544 submit/tizen/20151218.051959 submit/tizen_common/20151229.142028 submit/tizen_common/20151229.144031 submit/tizen_common/20151229.154718
authormin7.choi <min7.choi@samsung.com>
Thu, 26 Nov 2015 11:13:18 +0000 (20:13 +0900)
committermin7.choi <min7.choi@samsung.com>
Thu, 26 Nov 2015 11:13:18 +0000 (20:13 +0900)
Change-Id: I0ce7feca5113305058d35e99fc89369baba18090
Signed-off-by: min7.choi <min7.choi@samsung.com>
src/download-wrapping.c

index 0c9dfd8..0afada1 100755 (executable)
@@ -97,14 +97,13 @@ int download_set_network_type(int download_id,
 {
        TRACE_INFO("");
 
-       int bValue = 0;
-       int bIsTelephonyFeatureSupported =0;
+       int bIsTelephonyFeatureSupported = 0;
        int bIsWifiFeatureSupported = 0;
        int bIsWifiDirectFeatureSupported = 0;
 
-       bValue = system_info_get_platform_bool (TELEPHONY_FEATURE, &bIsTelephonyFeatureSupported);
-       bValue = system_info_get_platform_bool (WIFI_FEATURE, &bIsWifiFeatureSupported);
-       bValue = system_info_get_platform_bool (WIFI_DIRECT_FEATURE, &bIsWifiDirectFeatureSupported);
+       system_info_get_platform_bool (TELEPHONY_FEATURE, &bIsTelephonyFeatureSupported);
+       system_info_get_platform_bool (WIFI_FEATURE, &bIsWifiFeatureSupported);
+       system_info_get_platform_bool (WIFI_DIRECT_FEATURE, &bIsWifiDirectFeatureSupported);
 
        switch (net_type)
        {
@@ -133,7 +132,7 @@ int download_set_network_type(int download_id,
                        }
                        break;
        }
-       /////////////////////////
+
        return dp_interface_set_network_type(download_id, (int)net_type);
 }