[glib: 7/17] gdbusconnection: Simplify some control flow
- From: Sebastian Dröge <sdroege src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 7/17] gdbusconnection: Simplify some control flow
- Date: Mon, 24 Feb 2020 10:02:05 +0000 (UTC)
commit 1a51681e6d1484ee7bcb4afd76bfe03c0d521158
Author: Philip Withnall <withnall endlessm com>
Date: Thu Feb 20 13:20:41 2020 +0000
gdbusconnection: Simplify some control flow
This removes an unhelpful `goto`. It introduces no functional changes.
Signed-off-by: Philip Withnall <withnall endlessm com>
gio/gdbusconnection.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
---
diff --git a/gio/gdbusconnection.c b/gio/gdbusconnection.c
index 5f5fad0f1..b58b1b4a3 100644
--- a/gio/gdbusconnection.c
+++ b/gio/gdbusconnection.c
@@ -255,7 +255,7 @@ call_destroy_notify (GMainContext *context,
CallDestroyNotifyData *data;
if (callback == NULL)
- goto out;
+ return;
data = g_new0 (CallDestroyNotifyData, 1);
data->callback = callback;
@@ -270,9 +270,6 @@ call_destroy_notify (GMainContext *context,
g_source_set_name (idle_source, "[gio] call_destroy_notify_data_in_idle");
g_source_attach (idle_source, context);
g_source_unref (idle_source);
-
- out:
- ;
}
/* ---------------------------------------------------------------------------------------------------- */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]