summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSzymon Janc <szymon.janc@tieto.com>2013-09-26 10:02:35 +0200
committerMarcel Holtmann <marcel@holtmann.org>2013-10-14 06:08:22 -0700
commitbc0817f0d3e26b4f9921c3db4123f9a0f6ba5cd0 (patch)
treec5675086d25716d26ce8ad349d274ea74fa17df4
parent2be018f11e031c2ba41c4af82c9de63c7b3053c5 (diff)
downloadneard-bc0817f0d3e26b4f9921c3db4123f9a0f6ba5cd0.tar.gz
neard-bc0817f0d3e26b4f9921c3db4123f9a0f6ba5cd0.tar.bz2
neard-bc0817f0d3e26b4f9921c3db4123f9a0f6ba5cd0.zip
gdbus: Remove not needed check for NULL DBusPendingCall
It is now checked by g_dbus_send_message_with_reply() so there is no need to double check that in caller.
-rw-r--r--gdbus/client.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/gdbus/client.c b/gdbus/client.c
index 7bffdad..be8cc29 100644
--- a/gdbus/client.c
+++ b/gdbus/client.c
@@ -112,11 +112,6 @@ static gboolean modify_match(DBusConnection *conn, const char *member,
return FALSE;
}
- if (call == NULL) {
- dbus_message_unref(msg);
- return FALSE;
- }
-
dbus_pending_call_set_notify(call, modify_match_reply, NULL, NULL);
dbus_pending_call_unref(call);