* [PATCH] bluetooth: remove unneeded g_io_channel_shutdown
@ 2011-02-17 16:52 =?unknown-8bit?q?Fr=C3=A9d=C3=A9ric?= Danis
2011-02-17 17:16 ` Denis Kenzior
0 siblings, 1 reply; 2+ messages in thread
From: =?unknown-8bit?q?Fr=C3=A9d=C3=A9ric?= Danis @ 2011-02-17 16:52 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 1063 bytes --]
---
plugins/hfp_ag.c | 9 +++------
1 files changed, 3 insertions(+), 6 deletions(-)
diff --git a/plugins/hfp_ag.c b/plugins/hfp_ag.c
index 6acb4dd..6edd73d 100644
--- a/plugins/hfp_ag.c
+++ b/plugins/hfp_ag.c
@@ -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,
--
1.7.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-02-17 17:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-17 16:52 [PATCH] bluetooth: remove unneeded g_io_channel_shutdown =?unknown-8bit?q?Fr=C3=A9d=C3=A9ric?= Danis
2011-02-17 17:16 ` Denis Kenzior
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.