[PATCH 2/2] gdbus: Remove not needed check for NULL DBusPendingCall

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



It is now checked by g_dbus_send_message_with_reply() so there is no
need to double check that in caller.
---
 gdbus/client.c | 5 -----
 1 file changed, 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);
 
-- 
1.8.4

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux