From 3bb7c1527ce3ec67127200b54a8fbc01a196ebad Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Sat, 8 Nov 2008 15:53:12 +0200 Subject: Fix coding style --- src/device.c | 8 +++----- 1 file 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); -- cgit