From 91e66ae3ed035b5bccf3e18939d331deb165299c Mon Sep 17 00:00:00 2001 From: DoHyun Pyun Date: Wed, 7 Dec 2016 08:52:15 +0900 Subject: [PATCH] Fix the coding style errors Change-Id: I98b13db741daedffb50d23a1e3a7eeb7bf6917db Signed-off-by: DoHyun Pyun --- common/src/libraries/bt-callback.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/common/src/libraries/bt-callback.c b/common/src/libraries/bt-callback.c index eba161a..b5cec96 100644 --- a/common/src/libraries/bt-callback.c +++ b/common/src/libraries/bt-callback.c @@ -522,7 +522,7 @@ void _bt_cb_new_le_device_found(int result, bt_adapter_le_device_scan_result_inf if (ret != BT_ERROR_NONE) BT_ERR("Fail to get le device name"); - if(ugd->searched_device == NULL) + if (ugd->searched_device == NULL) _bt_update_genlist_item(ugd->searched_title); if (_bt_main_check_and_update_device(ugd->searched_device, @@ -642,11 +642,10 @@ void _bt_cb_gatt_connection_state_changed(int result, bool connected, char *remo elm_object_disabled_set(ugd->scan_btn, EINA_FALSE); if (connected) { - if (result != BT_ERROR_NONE) { + if (result != BT_ERROR_NONE) BT_ERR("Failed to GATT connect with device [%d]", result); - } else { + else BT_DBG("LE Connected"); - } } else { BT_DBG("LE Disconnected"); } @@ -806,9 +805,8 @@ void _bt_cb_bonding_created(int result, bt_device_info_s *dev_info, /* Don't try to auto-connect in the network case */ if (profile == NULL && ugd->searched_item != NULL) { - if (_bt_main_is_connectable_device(new_dev)) { - _bt_main_connect_device(ugd, new_dev); - } + if (_bt_main_is_connectable_device(new_dev)) + _bt_main_connect_device(ugd, new_dev); } else { BT_DBG("Net profile exists"); int connected = _bt_util_is_profile_connected( -- 2.7.4