From: Mikel Astiz Date: Thu, 16 Aug 2012 11:08:28 +0000 (+0200) Subject: bluetooth: Minor style fix X-Git-Tag: accepted/2.0alpha/20121211.011210~34 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5dc416fad1733d5e774f7ce854e66747073b7b6a;p=profile%2Fivi%2Fpulseaudio.git bluetooth: Minor style fix Else clause should be in the same line as the closing brace. --- diff --git a/src/modules/bluetooth/module-bluetooth-device.c b/src/modules/bluetooth/module-bluetooth-device.c index 3f5a2ae..86cd40c 100644 --- a/src/modules/bluetooth/module-bluetooth-device.c +++ b/src/modules/bluetooth/module-bluetooth-device.c @@ -1971,12 +1971,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; }