summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Danis <frederic.danis@linux.intel.com>2011-02-17 17:52:57 +0100
committerDenis Kenzior <denkenz@gmail.com>2011-02-17 11:15:48 -0600
commitde02942e77ade9c8fa382bc2f6d54e225850ab6a (patch)
tree699d579936b5a56e5cd89f5b68eb4f1e5fa774e0
parentba8000cadf46e1179666bb5e5e3af9eb3e662110 (diff)
downloadofono-de02942e77ade9c8fa382bc2f6d54e225850ab6a.tar.bz2
bluetooth: remove unneeded g_io_channel_shutdown
-rw-r--r--plugins/hfp_ag.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/plugins/hfp_ag.c b/plugins/hfp_ag.c
index 6acb4ddf..6edd73d8 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,