Fix the coding style errors (bt-core) 47/72047/1
authorDoHyun Pyun <dh79.pyun@samsung.com>
Mon, 30 May 2016 09:52:52 +0000 (18:52 +0900)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Mon, 30 May 2016 09:52:52 +0000 (18:52 +0900)
Change-Id: I519953e66b0980657a7ad5f60f6a9aec5ed5a6d2
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
bt-core/bt-core-adapter.c
bt-core/bt-core-noti-handler.c
bt-core/include/bt-core-common.h

index 9fea8080220f31c333dcaa00d56406e8040a5928..490175c0c4d927fc06fa7d77c35cdb252475d3f8 100755 (executable)
@@ -230,7 +230,7 @@ int _bt_disable_adapter(void)
        if (__execute_command("/usr/etc/bluetooth/bt-stack-down.sh", NULL) < 0) {
 #endif
                BT_ERR("running script failed");
-               __bt_core_set_status( BT_ACTIVATED);
+               __bt_core_set_status(BT_ACTIVATED);
                return -1;
        }
 
@@ -352,7 +352,7 @@ static gboolean __bt_core_check_the_adapter_path(GDBusConnection *conn)
        GVariant *result = NULL;
        char *adapter_path = NULL;
 
-       if(conn == NULL)
+       if (conn == NULL)
                return FALSE;
 
        manager_proxy =  g_dbus_proxy_new_sync(conn,
@@ -432,9 +432,9 @@ void _bt_core_update_status(void)
 
                BT_INFO("bt_status = %d, bt_le_status = %d", bt_status, bt_le_status);
 
-               if(bt_status & VCONFKEY_BT_STATUS_ON)
+               if (bt_status & VCONFKEY_BT_STATUS_ON)
                        __bt_core_set_status(BT_ACTIVATED);
-               if(bt_le_status & VCONFKEY_BT_LE_STATUS_ON)
+               if (bt_le_status & VCONFKEY_BT_LE_STATUS_ON)
                        __bt_core_set_le_status(BT_ACTIVATED);
        }
 }
@@ -791,8 +791,7 @@ void _bt_core_adapter_removed_cb(void)
                                                EVT_VAL_BT_LE_OFF) != ES_R_OK)
                BT_ERR("Fail to set value");
 
-       if (is_recovery_mode == TRUE)
-       {
+       if (is_recovery_mode == TRUE) {
                if (timer_id < 0)
                        timer_id = g_timeout_add(2000, (GSourceFunc)__bt_core_recovery_cb, NULL);
                return;
@@ -814,7 +813,7 @@ void _bt_core_adapter_removed_cb(void)
        }
        _bt_set_flightmode_request(FALSE);
 
-       if (flight_mode_value == 1 || power_saving_mode == 1){
+       if (flight_mode_value == 1 || power_saving_mode == 1) {
                BT_DBG("Bt Core not terminated");
                return;
        }
index fe451310457326d27f6f68c920952942c4645257..fa94f49cb5ada06ce131b0b2245eef4497f3f048 100755 (executable)
@@ -40,9 +40,9 @@ static gboolean __bt_off_cause_conflict_check(void)
        int ps_mode_value = 0;
        gboolean ret = FALSE;
 
-       retv_if (vconf_get_int(BT_OFF_DUE_TO_FLIGHT_MODE,
+       retv_if(vconf_get_int(BT_OFF_DUE_TO_FLIGHT_MODE,
                                        &flight_mode_value) != 0, FALSE);
-       retv_if (vconf_get_int(BT_OFF_DUE_TO_POWER_SAVING_MODE,
+       retv_if(vconf_get_int(BT_OFF_DUE_TO_POWER_SAVING_MODE,
                                        &ps_mode_value) != 0, FALSE);
 
        if (flight_mode_value == 1 || ps_mode_value > 0) {
index 8501d1a917d80f7ff3213fdf39e00cbae3d5cec6..b1bf5e66defa9a5f6022469b4e1da2fc48fa8040 100755 (executable)
@@ -66,7 +66,7 @@ extern "C" {
                } \
        } while (0)
 
-#define BT_FREE_PARAMS(IP1,IP2,IP3,IP4,OP) \
+#define BT_FREE_PARAMS(IP1, IP2, IP3, IP4, OP) \
        do { \
                if (IP1) \
                        g_array_free(IP1, TRUE); \
@@ -80,7 +80,7 @@ extern "C" {
                        g_array_free(OP, TRUE); \
        } while (0)
 
-#define BT_ALLOC_PARAMS(IP1,IP2,IP3,IP4,OP ) \
+#define BT_ALLOC_PARAMS(IP1, IP2, IP3, IP4, OP) \
        do { \
                IP1 = g_array_new(TRUE, TRUE, sizeof(gchar));   \
                IP2 = g_array_new(TRUE, TRUE, sizeof(gchar));   \