From 107f6ee731cb097615221d42559b84838a6b7dcc Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Wed, 27 Oct 2010 20:32:02 -0500 Subject: radio-settings: Add extra newlines To be compliant with the coding style --- src/radio-settings.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src') diff --git a/src/radio-settings.c b/src/radio-settings.c index dbcf5f44..cb0a598f 100644 --- a/src/radio-settings.c +++ b/src/radio-settings.c @@ -145,9 +145,12 @@ static void radio_fast_dormancy_set_callback(const struct ofono_error *error, if (error->type != OFONO_ERROR_TYPE_NO_ERROR) { DBG("Error setting fast dormancy"); + rs->fast_dormancy_pending = rs->fast_dormancy; + reply = __ofono_error_failed(rs->pending); __ofono_dbus_pending_reply(&rs->pending, reply); + return; } @@ -185,9 +188,12 @@ static void radio_mode_set_callback(const struct ofono_error *error, void *data) if (error->type != OFONO_ERROR_TYPE_NO_ERROR) { DBG("Error setting radio access mode"); + rs->pending_mode = rs->mode; + reply = __ofono_error_failed(rs->pending); __ofono_dbus_pending_reply(&rs->pending, reply); + return; } @@ -202,6 +208,7 @@ static void radio_send_properties_reply(struct ofono_radio_settings *rs) DBusMessage *reply; rs->flags |= RADIO_SETTINGS_FLAG_CACHED; + reply = radio_get_properties_reply(rs->pending, rs); __ofono_dbus_pending_reply(&rs->pending, reply); } @@ -214,8 +221,10 @@ static void radio_fast_dormancy_query_callback(const struct ofono_error *error, if (error->type != OFONO_ERROR_TYPE_NO_ERROR) { DBG("Error during fast dormancy query"); + reply = __ofono_error_failed(rs->pending); __ofono_dbus_pending_reply(&rs->pending, reply); + return; } @@ -243,8 +252,10 @@ static void radio_rat_mode_query_callback(const struct ofono_error *error, if (error->type != OFONO_ERROR_TYPE_NO_ERROR) { DBG("Error during radio access mode query"); + reply = __ofono_error_failed(rs->pending); __ofono_dbus_pending_reply(&rs->pending, reply); + return; } -- cgit v1.2.3