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; \
} \