summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClaudio Takahasi <claudio.takahasi@openbossa.org>2007-08-06 14:46:19 +0000
committerClaudio Takahasi <claudio.takahasi@openbossa.org>2007-08-06 14:46:19 +0000
commitf074ab20467dbacbfb209c333ef16b5897ba9537 (patch)
tree148d5e25e1863074ac81e97f3c2e53c705d1eec7
parenteefa0614e36f5107bd56581c86e9fc8ffed3dd8b (diff)
hcid: code cleanup - useless list
-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));