Remove unrechable codes 94/243894/1 accepted/tizen_6.0_unified accepted/tizen_6.0_unified_hotfix accepted/tizen_6.5_unified tizen_6.0 tizen_6.0_hotfix accepted/tizen/6.0/unified/20201030.121407 accepted/tizen/6.0/unified/hotfix/20201103.003618 accepted/tizen/6.0/unified/hotfix/20201103.050359 accepted/tizen/6.5/unified/20211028.100438 accepted/tizen/unified/20200914.131439 submit/tizen/20200911.055514 submit/tizen_6.0/20201029.205102 submit/tizen_6.0_hotfix/20201102.192502 submit/tizen_6.0_hotfix/20201103.114802 submit/tizen_6.5/20211028.161801 tizen_6.0.m2_release tizen_6.5.m2_release
authorSeonah Moon <seonah1.moon@samsung.com>
Fri, 11 Sep 2020 03:46:27 +0000 (12:46 +0900)
committerSeonah Moon <seonah1.moon@samsung.com>
Fri, 11 Sep 2020 03:46:32 +0000 (12:46 +0900)
Change-Id: I73f36926231e00021dfbf499726ebf3b19bd6347

src/capi_vpn_service.c

index d901519..c9d1357 100755 (executable)
@@ -976,11 +976,6 @@ EXPORT_API int vpnsvc_get_iface_name(vpnsvc_h handle, char** iface_name)
                return VPNSVC_ERROR_INVALID_PARAMETER;
        }
 
-       if (iface_name == NULL) {
-               LOGE("tun name string is NULL");
-               return VPNSVC_ERROR_INVALID_PARAMETER;
-       }
-
        g_strlcpy(la_iface_name, tun_s->name, VPNSVC_VPN_IFACE_NAME_LEN + 1);
        *iface_name = g_strdup(la_iface_name);