Remove unnecessary code 55/184155/2 accepted/tizen/unified/20180717.063114 submit/tizen/20180716.055639
authorSeonah Moon <seonah1.moon@samsung.com>
Mon, 16 Jul 2018 04:17:45 +0000 (13:17 +0900)
committerseonah moon <seonah1.moon@samsung.com>
Mon, 16 Jul 2018 04:20:58 +0000 (04:20 +0000)
Change-Id: Ifc2b715db7d894dc71c0f74590dcd937047f8d08

src/mobileap_softap.c

index 82d308c..ee57843 100755 (executable)
@@ -2143,7 +2143,6 @@ static void __generate_eui64_address(int idx, const char *hw_addr, char **eui64_
 int _mh_core_create_ipv6_address(int idx, const char *hw_address, char **ipv6_address)
 {
        char *eui64_addr = NULL;
-       char *network_addr = NULL;
        char *network_prefix = NULL;
        char copied[INET6_ADDRSTRLEN] = {0, };
 
@@ -2153,13 +2152,6 @@ int _mh_core_create_ipv6_address(int idx, const char *hw_address, char **ipv6_ad
                return MOBILE_AP_ERROR_INTERNAL;
        }
 
-       network_addr = _get_ipv6_network_address();
-       if (network_addr == NULL) {
-               ERR("Failed to get network address!!"); //LCOV_EXCL_LINE
-               g_free(eui64_addr);
-               return MOBILE_AP_ERROR_INTERNAL;
-       }
-
        network_prefix = _get_ipv6_network_prefix();
        if (network_prefix == NULL) {
                ERR("Failed to get network prefix!!");