Fix the coding style errors
[platform/core/connectivity/bluetooth-agent.git] / hf-agent / bluetooth-hf-agent.c
index 2ba0b56..9e80a01 100755 (executable)
@@ -2071,9 +2071,9 @@ static gboolean __bt_hf_send_only(bt_hf_agent_info_t *bt_hf_info, gchar *data,
        gboolean pending = FALSE;
        GIOChannel *io_chan = bt_hf_info->io_chan;
 
-       if (send_flag) {
+       if (send_flag)
                pending = TRUE;
-       }
+
        __bt_hf_agent_add_queue(bt_hf_info->context, data, count, pending);
 
        if (pending)
@@ -2731,9 +2731,8 @@ static gboolean __bt_agent_request_service_level_conn(gpointer data)
                if (vconf_get_int(VCONFKEY_BT_DEVICE, &bt_device_state) == 0) {
                        DBG("BT device state is : 0x%X", bt_device_state);
                        bt_device_state |= VCONFKEY_BT_DEVICE_AG_CONNECTED;
-                       if (vconf_set_int(VCONFKEY_BT_DEVICE, bt_device_state) != 0) {
+                       if (vconf_set_int(VCONFKEY_BT_DEVICE, bt_device_state) != 0)
                                ERR("vconf_set_int failed");
-                       }
                } else {
                        ERR("vconf_get_int failed");
                }
@@ -2757,9 +2756,9 @@ static gboolean __bt_agent_request_service_level_conn(gpointer data)
        if (vconf_get_int(VCONFKEY_BT_DEVICE, &bt_device_state) == 0) {
                DBG("BT device state is : 0x%X", bt_device_state);
                bt_device_state |= VCONFKEY_BT_DEVICE_AG_CONNECTED;
-               if (vconf_set_int(VCONFKEY_BT_DEVICE, bt_device_state) != 0) {
+
+               if (vconf_set_int(VCONFKEY_BT_DEVICE, bt_device_state) != 0)
                        ERR("vconf_set_int failed");
-               }
        } else {
                ERR("vconf_get_int failed");
        }
@@ -2858,9 +2857,9 @@ static gboolean __bt_hf_agent_release(void)
        if (vconf_get_int(VCONFKEY_BT_DEVICE, &bt_device_state) == 0) {
                DBG("BT device state is : 0x%X", bt_device_state);
                bt_device_state ^= VCONFKEY_BT_DEVICE_AG_CONNECTED;
-               if (vconf_set_int(VCONFKEY_BT_DEVICE, bt_device_state) != 0) {
+
+               if (vconf_set_int(VCONFKEY_BT_DEVICE, bt_device_state) != 0)
                        ERR("vconf_set_int failed");
-               }
        } else {
                ERR("vconf_get_int failed");
        }