[ITC][capi-network-inm][NonACR][TFDF-1183,Changes done as per developer] 30/201630/2
authorNibha Sharma <nibha.sharma@samsung.com>
Mon, 18 Mar 2019 08:57:47 +0000 (14:27 +0530)
committerPriya Kohli <priya.kohli@samsung.com>
Mon, 18 Mar 2019 09:18:21 +0000 (09:18 +0000)
Change-Id: I7bf1ff74b650c6eb57c17a9b58f3102d5b6749cc
Signed-off-by: Nibha Sharma <nibha.sharma@samsung.com>
src/itc/capi-network-inm/ITs-capi-network-inm-link.c

index f495f402672f1ffdef77de9304a0b2b4ed08cb7f..f53061c2962fed4541e4e26b593388728fb735e9 100755 (executable)
@@ -428,13 +428,9 @@ int ITc_inm_link_get_received_bytes_p(void)
 
        unsigned long long llBytes = 0;
 
+       //As per developer,if interface has no recv/sent byte, llBytes should be zero so llBytes value is not checked
        int nRet = inm_link_get_received_bytes(g_hLinkHandle, &llBytes);
        PRINT_RESULT(nRet, INM_ERROR_NONE, "inm_link_get_received_bytes", InmGetError(nRet));
-       if( llBytes == 0 )
-       {
-               FPRINTF("[Line : %d][%s] %s failed. llBytes = %llu\\n", __LINE__, API_NAMESPACE, "inm_link_get_received_bytes", llBytes);
-               return 1;
-       }
 
        return 0;
 }
@@ -459,13 +455,9 @@ int ITc_inm_link_get_sent_bytes_p(void)
 
        unsigned long long llBytes = 0;
 
+       //As per developer,if interface has no recv/sent byte, llBytes should be zero so llBytes value is not checked
        int nRet = inm_link_get_sent_bytes(g_hLinkHandle, &llBytes);
        PRINT_RESULT(nRet, INM_ERROR_NONE, "inm_link_get_sent_bytes", InmGetError(nRet));
-       if( llBytes == 0 )
-       {
-               FPRINTF("[Line : %d][%s] %s failed. llBytes = %llu\\n", __LINE__, API_NAMESPACE, "inm_link_get_sent_bytes", llBytes);
-               return 1;
-       }
 
        return 0;
 }