Fix the coding style errors 22/102922/2 submit/tizen/20161219.233906
authorDoHyun Pyun <dh79.pyun@samsung.com>
Tue, 6 Dec 2016 23:52:15 +0000 (08:52 +0900)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Wed, 7 Dec 2016 01:38:34 +0000 (10:38 +0900)
Change-Id: I98b13db741daedffb50d23a1e3a7eeb7bf6917db
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
common/src/libraries/bt-callback.c

index eba161a..b5cec96 100644 (file)
@@ -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(