X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=bt-api%2Fbt-pbap.c;h=1d018f83643b02b826be248a275a1b45799f07f9;hb=3eb1fad47e0711d7fc526150157fb9cd63c490b3;hp=33b32e57bebcee2b4446279b07f060d67b3ebd78;hpb=d9b08c1cb048357d6bdfc8ce9ce6f59ef364a4ad;p=platform%2Fcore%2Fconnectivity%2Fbluetooth-frwk.git diff --git a/bt-api/bt-pbap.c b/bt-api/bt-pbap.c index 33b32e5..1d018f8 100755 --- a/bt-api/bt-pbap.c +++ b/bt-api/bt-pbap.c @@ -29,8 +29,7 @@ static char is_pbap_initialized = FALSE; #define BT_CHECK_PBAP_INITIALIZED(func) \ - if (is_pbap_initialized == FALSE) \ - { \ + if (is_pbap_initialized == FALSE) { \ BT_ERR("BT PBAP Client is not initiatized"); \ func BLUETOOTH_ERROR_NOT_INITIALIZED; \ } \ @@ -41,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; @@ -59,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);