Fix the svace issue - DEREF_AFTER_NULL
[platform/core/connectivity/bluetooth-frwk.git] / bt-api / bt-pbap.c
index 1e17ba9..1d018f8 100755 (executable)
@@ -40,7 +40,6 @@ BT_EXPORT_API int bluetooth_pbap_init(void)
        bt_user_info_t *user_info;
        int ret;
 
-       BT_CHECK_ENABLED(return);
        if (is_pbap_initialized)
                return BLUETOOTH_ERROR_ALREADY_INITIALIZED;
 
@@ -58,7 +57,7 @@ BT_EXPORT_API int bluetooth_pbap_init(void)
 BT_EXPORT_API int bluetooth_pbap_deinit(void)
 {
        int ret;
-       BT_CHECK_ENABLED(return);
+
        BT_CHECK_PBAP_INITIALIZED(return);
 
        ret = _bt_unregister_event(BT_PBAP_CLIENT_EVENT);