summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2010-02-12 11:27:02 -0600
committerDenis Kenzior <denkenz@gmail.com>2010-02-12 11:27:02 -0600
commit1155a0c1a7705b2c86f1ae357afc071b193f2af9 (patch)
tree0a5dad7fc3ab9e864dd16a81169dd99979ce7726
parent0d86193b34c9e5e9161cf21bba681f29b1ac9092 (diff)
downloadofono-1155a0c1a7705b2c86f1ae357afc071b193f2af9.tar.bz2
Style: No need for a function here
-rw-r--r--plugins/hfp.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/plugins/hfp.c b/plugins/hfp.c
index 271a94b6..49b5537e 100644
--- a/plugins/hfp.c
+++ b/plugins/hfp.c
@@ -709,13 +709,6 @@ done:
dbus_message_unref(reply);
}
-static int hfp_load_modems()
-{
- return send_method_call_with_reply(BLUEZ_SERVICE, "/",
- BLUEZ_MANAGER_INTERFACE, "ListAdapters",
- list_adapters_cb, NULL, -1, DBUS_TYPE_INVALID);
-}
-
static int hfp_register_ofono_handsfree(struct ofono_modem *modem)
{
const char *obj_path = ofono_modem_get_path(modem);
@@ -936,7 +929,9 @@ static int hfp_init()
if (err < 0)
goto remove;
- hfp_load_modems();
+ send_method_call_with_reply(BLUEZ_SERVICE, "/",
+ BLUEZ_MANAGER_INTERFACE, "ListAdapters",
+ list_adapters_cb, NULL, -1, DBUS_TYPE_INVALID);
return 0;