From 0bb749a51fefd38864cd424ee1ef8eeae60ce89d Mon Sep 17 00:00:00 2001 From: "Gustavo F. Padovan" Date: Thu, 28 Jan 2010 11:32:42 -0200 Subject: Remove unneeded code to disable the modem on hfp ofono_modem_remove() already disables the modem. --- plugins/hfp.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'plugins/hfp.c') 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); -- cgit v1.2.3