summaryrefslogtreecommitdiff
path: root/gdbus
diff options
context:
space:
mode:
authorSzymon Janc <szymon.janc@tieto.com>2013-09-26 10:02:35 +0200
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2013-10-14 14:34:26 +0300
commit6a79b1ffa57c72188499a58a7e5aa8d2d977782c (patch)
treeb31e5ce1ca65aa3f9f274c1dd144f1e96e12531c /gdbus
parent32e2772e8f00ac46dcad71558c791232a5f8cc95 (diff)
downloadbluez-6a79b1ffa57c72188499a58a7e5aa8d2d977782c.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.
Diffstat (limited to 'gdbus')
-rw-r--r--gdbus/client.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/gdbus/client.c b/gdbus/client.c
index 7bffdad19..be8cc2960 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);