summaryrefslogtreecommitdiff
path: root/gdbus
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2010-01-27 09:48:21 +0100
committerMarcel Holtmann <marcel@holtmann.org>2010-01-27 09:50:14 +0100
commit834efb672875447b3baba9f6ee7f101abc105913 (patch)
tree3540b429cee9dd9808939c8f974e95a88e09341b /gdbus
parenta22875ffece0ce823882a653c9c212e1ebb4963c (diff)
downloadconnman-834efb672875447b3baba9f6ee7f101abc105913.tar.gz
connman-834efb672875447b3baba9f6ee7f101abc105913.tar.bz2
connman-834efb672875447b3baba9f6ee7f101abc105913.zip
Remove unneeded use of status variable
Diffstat (limited to 'gdbus')
-rw-r--r--gdbus/mainloop.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/gdbus/mainloop.c b/gdbus/mainloop.c
index 80c61b79..7f2d001e 100644
--- a/gdbus/mainloop.c
+++ b/gdbus/mainloop.c
@@ -292,7 +292,6 @@ DBusConnection *g_dbus_setup_bus(DBusBusType type, const char *name,
DBusError *error)
{
DBusConnection *conn;
- gboolean result;
conn = dbus_bus_get(type, error);
@@ -304,9 +303,7 @@ DBusConnection *g_dbus_setup_bus(DBusBusType type, const char *name,
if (conn == NULL)
return NULL;
- result = setup_bus(conn, name, error);
-
- if (result == FALSE) {
+ if (setup_bus(conn, name, error) == FALSE) {
dbus_connection_unref(conn);
return NULL;
}
@@ -318,7 +315,6 @@ DBusConnection *g_dbus_setup_private(DBusBusType type, const char *name,
DBusError *error)
{
DBusConnection *conn;
- gboolean result;
conn = dbus_bus_get_private(type, error);
@@ -330,9 +326,7 @@ DBusConnection *g_dbus_setup_private(DBusBusType type, const char *name,
if (conn == NULL)
return NULL;
- result = setup_bus(conn, name, error);
-
- if (result == FALSE) {
+ if (setup_bus(conn, name, error) == FALSE) {
dbus_connection_unref(conn);
return NULL;
}