From 860b8161ea060dc50a402d9ddf5de7fe7b4b49c2 Mon Sep 17 00:00:00 2001 From: Claudio Takahasi Date: Tue, 12 Jul 2011 14:11:58 -0300 Subject: [PATCH] Remove unnecessary assignment 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 file changed, 3 deletions(-) diff --git a/src/device.c b/src/device.c index 118538ba6..b7a3e92d6 100644 --- a/src/device.c +++ b/src/device.c @@ -1658,9 +1658,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; -- 2.47.3