diff options
author | Gustavo F. Padovan <padovan@profusion.mobi> | 2011-09-29 14:54:23 -0300 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2011-09-29 14:03:45 -0500 |
commit | ee2ba5b256d453e1bfcca2c3561830a8fe015125 (patch) | |
tree | 61c7d61a46e2dbcd3097841f719476fa7bd63da3 /plugins/sap.c | |
parent | 0e4a351282d56f42af9b8eb55531236d2ed6f1a6 (diff) | |
download | ofono-ee2ba5b256d453e1bfcca2c3561830a8fe015125.tar.bz2 |
sap: also accept err = 0 in enable()
Diffstat (limited to 'plugins/sap.c')
-rw-r--r-- | plugins/sap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/sap.c b/plugins/sap.c index 102abc96..be2724c4 100644 --- a/plugins/sap.c +++ b/plugins/sap.c @@ -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; } |