mirror of git://git.sysmocom.de/ofono
Style: No need for a function here
This commit is contained in:
parent
0d86193b34
commit
1155a0c1a7
|
@ -709,13 +709,6 @@ done:
|
||||||
dbus_message_unref(reply);
|
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)
|
static int hfp_register_ofono_handsfree(struct ofono_modem *modem)
|
||||||
{
|
{
|
||||||
const char *obj_path = ofono_modem_get_path(modem);
|
const char *obj_path = ofono_modem_get_path(modem);
|
||||||
|
@ -936,7 +929,9 @@ static int hfp_init()
|
||||||
if (err < 0)
|
if (err < 0)
|
||||||
goto remove;
|
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;
|
return 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue