summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2008-11-08 15:53:12 +0200
committerJohan Hedberg <johan.hedberg@nokia.com>2008-11-08 15:53:12 +0200
commit3bb7c1527ce3ec67127200b54a8fbc01a196ebad (patch)
treef565819506ce781b58b0a3818ec65b8b0e8713af
parenta218e9ef197edef59b1a96b50e3656993c28ffda (diff)
Fix coding style
-rw-r--r--src/device.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/device.c b/src/device.c
index cd2cdb96..82558567 100644
--- a/src/device.c
+++ b/src/device.c
@@ -632,17 +632,15 @@ static GSList *device_match_pattern(struct btd_device *device,
const sdp_record_t *rec;
rec = btd_device_get_record(device, uuid);
-
+
if (!rec)
continue;
patterns = pattern_to_list(rec->pattern);
- if (!g_slist_find_custom(patterns, pattern,
+ if (g_slist_find_custom(patterns, pattern,
(GCompareFunc) strcasecmp))
- continue;
-
- uuids = g_slist_append(uuids, l->data);
+ uuids = g_slist_append(uuids, uuid);
}
g_slist_foreach(patterns, (GFunc) g_free, NULL);