summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorGustavo F. Padovan <padovan@profusion.mobi>2010-01-28 11:32:42 -0200
committerDenis Kenzior <denkenz@gmail.com>2010-01-28 10:41:28 -0600
commit0bb749a51fefd38864cd424ee1ef8eeae60ce89d (patch)
treea6ead05cec9952338d63f099de1811ea98e028e8 /plugins
parentbcad38ceffe6a5ed6351027c49bfec78dbe836ff (diff)
downloadofono-0bb749a51fefd38864cd424ee1ef8eeae60ce89d.tar.bz2
Remove unneeded code to disable the modem on hfp
ofono_modem_remove() already disables the modem.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/hfp.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/plugins/hfp.c b/plugins/hfp.c
index ea7a85ef..5b2cdae9 100644
--- a/plugins/hfp.c
+++ b/plugins/hfp.c
@@ -388,9 +388,6 @@ static DBusMessage *hfp_agent_release(DBusConnection *conn,
{
struct ofono_modem *modem = data;
- if (ofono_modem_get_powered(modem))
- hfp_disable(modem);
-
ofono_modem_remove(modem);
return dbus_message_new_method_return(msg);