From 18bdb1234d712dc466e7d71e8f6dc75ea1ef0c86 Mon Sep 17 00:00:00 2001 From: Mikel Astiz Date: Mon, 27 May 2013 14:04:04 +0200 Subject: [PATCH] network: Remove duplicated search 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 9481072da..84f3dd6fc 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; -- 2.11.0