[PATCH] Remove unnecessary assignment

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

 



D-Bus connection is set by the callers of the discover primary service
function on both situations: create device without bonding or after
bonding complete.
---
 src/device.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/src/device.c b/src/device.c
index 2c0eec3..21b3d8d 100644
--- a/src/device.c
+++ b/src/device.c
@@ -1781,9 +1781,6 @@ int device_browse_primary(struct btd_device *device, DBusConnection *conn,
 		return -EIO;
 	}
 
-	if (conn == NULL)
-		conn = get_dbus_connection();
-
 	req->conn = dbus_connection_ref(conn);
 	device->browse = req;
 
-- 
1.7.6

--
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