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,
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");
}
/* 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(