summaryrefslogtreecommitdiffstats
path: root/plugins/hfp.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/hfp.c')
-rw-r--r--plugins/hfp.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/plugins/hfp.c b/plugins/hfp.c
index 52f532bc..981b05b2 100644
--- a/plugins/hfp.c
+++ b/plugins/hfp.c
@@ -687,9 +687,6 @@ static int hfp_register_ofono_handsfree(struct ofono_modem *modem)
ofono_debug("Registering oFono Agent to bluetooth daemon");
- if (!data->handsfree_path)
- return -EINVAL;
-
return send_method_call(BLUEZ_SERVICE, data->handsfree_path,
BLUEZ_GATEWAY_INTERFACE, "RegisterAgent",
NULL, NULL, DBUS_TYPE_OBJECT_PATH,
@@ -703,9 +700,6 @@ static int hfp_unregister_ofono_handsfree(struct ofono_modem *modem)
ofono_debug("Unregistering oFono Agent from bluetooth daemon");
- if (!data->handsfree_path)
- return -EINVAL;
-
return send_method_call(BLUEZ_SERVICE, data->handsfree_path,
BLUEZ_GATEWAY_INTERFACE, "UnregisterAgent",
NULL, NULL, DBUS_TYPE_OBJECT_PATH,
@@ -743,9 +737,6 @@ static int hfp_connect_ofono_handsfree(struct ofono_modem *modem)
ofono_debug("Connect to bluetooth daemon");
- if (!data->handsfree_path || !connection)
- return -EINVAL;
-
return send_method_call(BLUEZ_SERVICE, data->handsfree_path,
BLUEZ_GATEWAY_INTERFACE, "Connect",
NULL, NULL, DBUS_TYPE_INVALID);
@@ -766,9 +757,6 @@ static int hfp_disconnect_ofono_handsfree(struct ofono_modem *modem)
{
struct hfp_data *data = ofono_modem_get_data(modem);
- if (!data->handsfree_path || !connection)
- return -EINVAL;
-
return send_method_call(BLUEZ_SERVICE, data->handsfree_path,
BLUEZ_GATEWAY_INTERFACE, "Disconnect",
NULL, NULL, DBUS_TYPE_INVALID);