From 50d8b11c4317b36fb2b6400cbbb8e175c9c0cd45 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Mon, 14 Feb 2011 13:47:20 -0600 Subject: linktop: Minor style issues --- plugins/linktop.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'plugins/linktop.c') diff --git a/plugins/linktop.c b/plugins/linktop.c index 7f552b5e..61db9a7e 100644 --- a/plugins/linktop.c +++ b/plugins/linktop.c @@ -248,11 +248,10 @@ static void set_online_cb(gboolean ok, GAtResult *result, gpointer user_data) { struct cb_data *cbd = user_data; ofono_modem_online_cb_t cb = cbd->cb; + struct ofono_error error; - if (ok) - CALLBACK_WITH_SUCCESS(cb, cbd->data); - else - CALLBACK_WITH_FAILURE(cb, cbd->data); + decode_at_error(&error, g_at_result_final_response(result)); + cb(&error, cbd->data); } static void linktop_set_online(struct ofono_modem *modem, ofono_bool_t online, @@ -337,7 +336,7 @@ static struct ofono_modem_driver linktop_driver = { .remove = linktop_remove, .enable = linktop_enable, .disable = linktop_disable, - .set_online = linktop_set_online, + .set_online = linktop_set_online, .pre_sim = linktop_pre_sim, .post_sim = linktop_post_sim, .post_online = linktop_post_online, -- cgit v1.2.3