summaryrefslogtreecommitdiffstats
path: root/src/gnss.c
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2011-03-25 14:51:30 -0500
committerDenis Kenzior <denkenz@gmail.com>2011-03-28 18:06:58 -0500
commit7ae093b97ef805a673928b923881b0ca506fee08 (patch)
tree31bc7a0f4a9d0983bca795e741be87fc37f306e5 /src/gnss.c
parent62d4037c38f065463132b0d780781504995edc69 (diff)
downloadofono-7ae093b97ef805a673928b923881b0ca506fee08.tar.bz2
gnss: Minor style fix
Diffstat (limited to 'src/gnss.c')
-rw-r--r--src/gnss.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/gnss.c b/src/gnss.c
index df5b2b40..b3aa6a66 100644
--- a/src/gnss.c
+++ b/src/gnss.c
@@ -202,15 +202,10 @@ static void gnss_send_element_cb(const struct ofono_error *error,
if (error->type != OFONO_ERROR_TYPE_NO_ERROR) {
ofono_error("Sending Positioning Element failed");
-
reply = __ofono_error_failed(gnss->pending);
+ } else
+ reply = dbus_message_new_method_return(gnss->pending);
- goto out;
- }
-
- reply = dbus_message_new_method_return(gnss->pending);
-
-out:
__ofono_dbus_pending_reply(&gnss->pending, reply);
}