fix violation of coding style 90/95590/1
authorYoungjae Shin <yj99.shin@samsung.com>
Fri, 4 Nov 2016 02:42:54 +0000 (11:42 +0900)
committerYoungjae Shin <yj99.shin@samsung.com>
Fri, 4 Nov 2016 02:42:54 +0000 (11:42 +0900)
Change-Id: I1115f5483190a72011b3fc9b3d85082ad9ceb37b

src/ic-ioty-parse.c
src/ic-utils.c

index fc42ae0..e9b5875 100644 (file)
@@ -258,8 +258,7 @@ static int _parse_remote_resource(OCDevAddr *dev_addr,
                                coap_str = IC_COAPS_TCP;
                        else
                                coap_str = IC_COAP_TCP;
-               }
-               else if (IC_UTILS_CONNECTIVITY_UDP & conn_options) {
+               } else if (IC_UTILS_CONNECTIVITY_UDP & conn_options) {
                        if (IOTCON_RESOURCE_SECURE & policies)
                                coap_str = IC_COAPS;
                        else
index baf25e0..6de3247 100644 (file)
@@ -362,9 +362,8 @@ int ic_utils_host_address_get_connectivity(const char *host_address, int conn_ty
 {
        int options;
 
-       if (NULL == host_address || IOTCON_CONNECTIVITY_ALL == conn_type) {
+       if (NULL == host_address || IOTCON_CONNECTIVITY_ALL == conn_type)
                return 0;
-       }
 
        /* IOTCON_CONNECTIVITY_IP == conn_type */
        if (IC_EQUAL == strncmp(IC_COAP, host_address, strlen(IC_COAP))) {