From: Mikel Astiz <mikel.astiz@xxxxxxxxxxxx> Commit 0624791ea6e917d6c9ecb8e7e6e5a1327199448d seems to accidentally have introduced this duplicated search as part of a non-trivial revert. --- profiles/network/connection.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/profiles/network/connection.c b/profiles/network/connection.c index 9481072..84f3dd6 100644 --- a/profiles/network/connection.c +++ b/profiles/network/connection.c @@ -433,10 +433,6 @@ static DBusMessage *local_connect(DBusConnection *conn, if (err < 0) return btd_error_failed(msg, strerror(-err)); - nc = find_connection(peer->connections, id); - if (!nc) - return btd_error_failed(msg, strerror(-err)); - nc->connect = dbus_message_ref(msg); return NULL; -- 1.8.1.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