summaryrefslogtreecommitdiffstats
path: root/plugins/hfp.c
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2010-02-04 13:16:59 -0600
committerDenis Kenzior <denkenz@gmail.com>2010-02-04 13:49:36 -0600
commit7bab47f07b2fd1a2c176e5dab4f21a51271cf2eb (patch)
treed452424262d4371522212bcea4bdbcbabd8ab8e0 /plugins/hfp.c
parent5a6bbd113d6cb07876a0e2502529d5522d1d9cdc (diff)
downloadofono-7bab47f07b2fd1a2c176e5dab4f21a51271cf2eb.tar.bz2
Fix: No need to check for handsfree_path now
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);