Remove unneeded code to disable the modem on hfp
authorGustavo F. Padovan <padovan@profusion.mobi>
Thu, 28 Jan 2010 13:32:42 +0000 (11:32 -0200)
committerDenis Kenzior <denkenz@gmail.com>
Thu, 28 Jan 2010 16:41:28 +0000 (10:41 -0600)
ofono_modem_remove() already disables the modem.

plugins/hfp.c

index ea7a85e..5b2cdae 100644 (file)
@@ -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);