[PATCH] obexd/session: Do not check session->driver->uuid in get_target()

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

 



From: Martin Xu <martin.xu@xxxxxxxxxxxxxxx>

since it already be checked at target_exists(), so if session->driver->uuid
is NULL get_target() should not be called.
---
 obexd/client/session.c |    3 ---
 1 file changed, 3 deletions(-)

diff --git a/obexd/client/session.c b/obexd/client/session.c
index 44e2bf8..361c921 100644
--- a/obexd/client/session.c
+++ b/obexd/client/session.c
@@ -680,9 +680,6 @@ static gboolean get_target(const GDBusPropertyTable *property,
 {
 	struct obc_session *session = data;
 
-	if (session->driver->uuid == NULL)
-		return FALSE;
-
 	dbus_message_iter_append_basic(iter, DBUS_TYPE_STRING,
 						&session->driver->uuid);
 
-- 
1.7.10.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