aboutsummaryrefslogtreecommitdiffstats
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:09:12 -0700
commit33282de594dda25f7abd300613290baff7489c27 (patch)
treec53657056f46c0ae675707e14c415d507199255c
parentab77276ab1d1c6c78d8d2e483b10739fdeb42297 (diff)
downloadpacrunner-33282de594dda25f7abd300613290baff7489c27.tar.gz
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);