From: Seonah Moon Date: Fri, 11 Sep 2020 03:46:27 +0000 (+0900) Subject: Remove unrechable codes X-Git-Tag: accepted/tizen/6.0/unified/20201030.121407^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=dc44758101cb6747e1e0f5c0d55164ea5adee898;p=platform%2Fcore%2Fapi%2Fvpn-service.git Remove unrechable codes Change-Id: I73f36926231e00021dfbf499726ebf3b19bd6347 --- diff --git a/src/capi_vpn_service.c b/src/capi_vpn_service.c index d901519..c9d1357 100755 --- a/src/capi_vpn_service.c +++ b/src/capi_vpn_service.c @@ -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);