summaryrefslogtreecommitdiffstats
path: root/plugins/stktest.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/stktest.c')
-rw-r--r--plugins/stktest.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/stktest.c b/plugins/stktest.c
index 6f7413db..c8cc9fbd 100644
--- a/plugins/stktest.c
+++ b/plugins/stktest.c
@@ -162,11 +162,11 @@ static void set_online_cb(gboolean ok, GAtResult *result, gpointer user_data)
{
struct cb_data *cbd = user_data;
ofono_modem_online_cb_t callback = cbd->cb;
- struct ofono_error error;
- decode_at_error(&error, g_at_result_final_response(result));
-
- callback(&error, cbd->data);
+ if (ok)
+ CALLBACK_WITH_SUCCESS(callback, cbd->data);
+ else
+ CALLBACK_WITH_FAILURE(callback, cbd->data);
}
static void stktest_set_online(struct ofono_modem *modem, ofono_bool_t online,