[WGID-164503] Removed unreachabe code 81/103681/1 accepted/tizen/common/20161210.161952 accepted/tizen/ivi/20161212.025410 accepted/tizen/mobile/20161212.025309 accepted/tizen/tv/20161212.025330 accepted/tizen/unified/20170309.032125 accepted/tizen/wearable/20161212.025351 submit/tizen/20161209.120323 submit/tizen_unified/20170308.100405
authorSeonah Moon <seonah1.moon@samsung.com>
Fri, 9 Dec 2016 06:33:18 +0000 (15:33 +0900)
committerSeonah Moon <seonah1.moon@samsung.com>
Fri, 9 Dec 2016 06:35:03 +0000 (15:35 +0900)
Change-Id: I73219128d8cc5ed5aabfd7bed6edbf2573847c28
Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
packaging/capi-vpn-service.spec
src/capi_vpn_service.c

index addb2e8..9686395 100755 (executable)
@@ -1,6 +1,6 @@
 Name:       vpnsvc-pkg
 Summary:    VPN service library in TIZEN C API
-Version:    1.0.26
+Version:    1.0.27
 Release:    1
 Group:      System/Network
 License:    Apache-2.0
index e2c3d2f..95b087d 100755 (executable)
@@ -577,10 +577,7 @@ EXPORT_API int vpnsvc_down(vpnsvc_h handle)
 
        LOGD("enter vpnsvc_down");
 
-       if (tun_s == NULL) {
-               LOGE("handle is a NULL"); //LCOV_EXCL_LINE
-               return VPNSVC_ERROR_INVALID_PARAMETER; //LCOV_EXCL_LINE
-       } else if (tun_s->connection == NULL) {
+       if (tun_s->connection == NULL) {
                LOGE("Connection Object is NULL"); //LCOV_EXCL_LINE
                return VPNSVC_ERROR_INVALID_PARAMETER; //LCOV_EXCL_LINE
        }