Remove the redundant debug message 78/179178/1
authorinjun.yang <injun.yang@samsung.com>
Wed, 16 May 2018 07:19:30 +0000 (16:19 +0900)
committerinjun.yang <injun.yang@samsung.com>
Wed, 16 May 2018 07:19:30 +0000 (16:19 +0900)
Change-Id: Ia545313be358d142476681ca8b7429e23b1960b0
Signed-off-by: injun.yang <injun.yang@samsung.com>
include/bluetooth_private.h

index 39e25b9..77e4136 100644 (file)
@@ -566,18 +566,15 @@ do        { \
 do     { \
        bool is_supported = false; \
        if (!system_info_get_platform_bool(feature_name1, &is_supported)) { \
-               if (is_supported == true) { \
-                       LOGE("[%s] SUPPORTED", __FUNCTION__); \
-                       break; \
+                if (is_supported == false) { \
+                       LOGE("[%s] NOT_SUPPORTED(0x%08x)", __FUNCTION__, BT_ERROR_NOT_SUPPORTED); \
+                       return BT_ERROR_NOT_SUPPORTED; \
                } \
        } else { \
                LOGE("[%s] Fail to get the system feature: [%s]", __FUNCTION__, feature_name1); \
        } \
        if (!system_info_get_platform_bool(feature_name2, &is_supported)) { \
-               if (is_supported == true) { \
-                       LOGE("[%s] SUPPORTED", __FUNCTION__); \
-                       break; \
-               } else  {\
+                if (is_supported == false) { \
                        LOGE("[%s] NOT_SUPPORTED(0x%08x)", __FUNCTION__, BT_ERROR_NOT_SUPPORTED); \
                        return BT_ERROR_NOT_SUPPORTED; \
                } \