Skip to contentSkip to conversation

bluetooth: remove unneeded g_io_channel_shutdown

PATCH In review Frédéric Danis 2 participants 2 messages Feb 17, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bluetooth: remove unneeded g_io_channel_shutdown

---
 plugins/hfp_ag.c |    9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)
plugins/hfp_ag.c +3 -6
index 6acb4dd..6edd73d 100644
@@ -95,19 +95,19 @@ static void hfp_ag_connect_cb(GIOChannel *io, GError *err, gpointer user_data)
 
 	if (err) {
 		DBG("%s", err->message);
-		goto failed;
+		return;
 	}
 
 	/* Pick the first voicecall capable modem */
 	modem = modems->data;
 	if (modem == NULL)
-		goto failed;
+		return;
 
 	DBG("Picked modem %p for emulator", modem);
 
 	em = ofono_emulator_create(modem, OFONO_EMULATOR_TYPE_HFP);
 	if (em == NULL)
-		goto failed;
+		return;
 
 	fd = g_io_channel_unix_get_fd(io);
 	ofono_emulator_register(em, fd);
@@ -115,9 +115,6 @@ static void hfp_ag_connect_cb(GIOChannel *io, GError *err, gpointer user_data)
 	g_io_channel_set_close_on_unref(io, FALSE);
 
 	return;
-
-failed:
-	g_io_channel_shutdown(io, TRUE, NULL);
 }
 
 static void voicecall_watch(struct ofono_atom *atom,
Signature · 1 line
1.7.1
#1 lore raw

Hi Frédéric,

Quoted 4 lines · Frédéric Danis
---
 plugins/hfp_ag.c |    9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)

Patch has been applied, thanks.

Regards,
-Denis