[geocode-glib] lib: Simplify returning the value



commit 4bfba11ce18cf33ef5ee6940d8b318cbc411dd57
Author: Bastien Nocera <hadess hadess net>
Date:   Mon Dec 3 10:13:06 2012 +0100

    lib: Simplify returning the value

 geocode-glib/geocode-forward.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/geocode-glib/geocode-forward.c b/geocode-glib/geocode-forward.c
index 2995017..5a9a279 100644
--- a/geocode-glib/geocode-forward.c
+++ b/geocode-glib/geocode-forward.c
@@ -97,7 +97,6 @@ static GList *
 _geocode_parse_single_result_json (const char  *contents,
 				   GError     **error)
 {
-	GList *ret;
 	GHashTable *ht;
 	GeocodeLocation *loc;
 	gdouble longitude;
@@ -112,9 +111,7 @@ _geocode_parse_single_result_json (const char  *contents,
 	loc = geocode_location_new_with_description (longitude, latitude,
 						     g_hash_table_lookup (ht, "line2"));
 
-	ret = g_list_append (NULL, loc);
-
-	return ret;
+	return g_list_append (NULL, loc);
 }
 
 static struct {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]