From ee2ba5b256d453e1bfcca2c3561830a8fe015125 Mon Sep 17 00:00:00 2001 From: "Gustavo F. Padovan" Date: Thu, 29 Sep 2011 14:54:23 -0300 Subject: [PATCH] sap: also accept err = 0 in enable() --- plugins/sap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/sap.c b/plugins/sap.c index 102abc9..be2724c 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; } -- 2.7.4