[gvfs] proxy volume monitor: Remove unnecessary goto
- From: Tomas Bzatek <tbzatek src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gvfs] proxy volume monitor: Remove unnecessary goto
- Date: Mon, 10 Dec 2012 14:47:06 +0000 (UTC)
commit fc34a87b7d534a4becb6c9969adc19c1187bac42
Author: Tomas Bzatek <tbzatek redhat com>
Date: Mon Dec 10 15:45:36 2012 +0100
proxy volume monitor: Remove unnecessary goto
A matter of developer's taste, but since the function has been simplified
a lot, no need to keep the goto around.
monitor/proxy/gproxyvolumemonitor.c | 11 ++---------
1 files changed, 2 insertions(+), 9 deletions(-)
---
diff --git a/monitor/proxy/gproxyvolumemonitor.c b/monitor/proxy/gproxyvolumemonitor.c
index 4a20957..7f05b39 100644
--- a/monitor/proxy/gproxyvolumemonitor.c
+++ b/monitor/proxy/gproxyvolumemonitor.c
@@ -1400,24 +1400,17 @@ register_volume_monitor (GTypeModule *type_module,
static gboolean
g_proxy_volume_monitor_setup_session_bus_connection (void)
{
- gboolean ret;
-
- ret = FALSE;
-
/* This is so that system daemons can use gio
* without spawning private dbus instances.
* See bug 526454.
*/
if (g_getenv ("DBUS_SESSION_BUS_ADDRESS") == NULL)
- goto out;
+ return FALSE;
if (the_volume_monitors == NULL)
the_volume_monitors = g_hash_table_new (g_direct_hash, g_direct_equal);
- ret = TRUE;
-
- out:
- return ret;
+ return TRUE;
}
void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]