]> code.delx.au - pulseaudio/commitdiff
bluetooth: Minor style fix
authorMikel Astiz <mikel.astiz@bmw-carit.de>
Thu, 16 Aug 2012 11:08:28 +0000 (13:08 +0200)
committerTanu Kaskinen <tanuk@iki.fi>
Tue, 21 Aug 2012 16:24:06 +0000 (19:24 +0300)
Else clause should be in the same line as the closing brace.

src/modules/bluetooth/module-bluetooth-device.c

index 19d62a6eebc8cc0258a96ee8999f778ba85e7ebe..60881fc5f50a0ed168df82fcb8cac9a5bf873c4e 100644 (file)
@@ -1968,12 +1968,10 @@ static int card_set_profile(pa_card *c, pa_card_profile *new_profile) {
     if (device->headset_state < PA_BT_AUDIO_STATE_CONNECTED && *d == PROFILE_HSP) {
         pa_log_warn("HSP is not connected, refused to switch profile");
         return -PA_ERR_IO;
-    }
-    else if (device->audio_sink_state < PA_BT_AUDIO_STATE_CONNECTED && *d == PROFILE_A2DP) {
+    } else if (device->audio_sink_state < PA_BT_AUDIO_STATE_CONNECTED && *d == PROFILE_A2DP) {
         pa_log_warn("A2DP is not connected, refused to switch profile");
         return -PA_ERR_IO;
-    }
-    else if (device->hfgw_state < PA_BT_AUDIO_STATE_CONNECTED && *d == PROFILE_HFGW) {
+    } else if (device->hfgw_state < PA_BT_AUDIO_STATE_CONNECTED && *d == PROFILE_HFGW) {
         pa_log_warn("HandsfreeGateway is not connected, refused to switch profile");
         return -PA_ERR_IO;
     }