summaryrefslogtreecommitdiffstats
path: root/hcid
diff options
context:
space:
mode:
Diffstat (limited to 'hcid')
-rw-r--r--hcid/dbus-adapter.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/hcid/dbus-adapter.c b/hcid/dbus-adapter.c
index 69f7e443..16bdc20f 100644
--- a/hcid/dbus-adapter.c
+++ b/hcid/dbus-adapter.c
@@ -2892,12 +2892,10 @@ static DBusHandlerResult adapter_list_remote_devices(DBusConnection *conn,
static void append_connected(struct active_conn_info *dev, GSList *list)
{
- GSList *l;
char address[18];
ba2str(&dev->bdaddr, address);
- l = g_slist_find_custom(list, address, (GCompareFunc) strcasecmp);
- if (l)
+ if (g_slist_find_custom(list, address, (GCompareFunc) strcasecmp))
return;
list = g_slist_append(list, g_strdup(address));