sap: also accept err = 0 in enable()

This commit is contained in:
Gustavo F. Padovan 2011-09-29 14:54:23 -03:00 committed by Denis Kenzior
parent 0e4a351282
commit ee2ba5b256
1 changed files with 1 additions and 1 deletions

View File

@ -154,7 +154,7 @@ static void sap_connect_reply(DBusPendingCall *call, gpointer user_data)
data->sap_driver = sap_hw_driver;
err = data->sap_driver->enable(data->hw_modem, modem, fd);
if (err == -EINPROGRESS) {
if (!err || err == -EINPROGRESS) {
dbus_message_unref(reply);
return;
}