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:07:44 -0700
commit51ca79bdbf1379fe16981843c07743f44f52bf3c (patch)
tree2aa645d6b405a8293d0130be314699276f6e87a5
parentc8c3b9fc5a1a82391fa195f318b0f01fb134b73d (diff)
downloadmmsd-51ca79bdbf1379fe16981843c07743f44f52bf3c.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);