Diff between c2097a4a073ea5c3ef364c56355d0a3595445684 and 648b249a409f7a3db89dfa77b76d23bffa70f418

Changed Files

File Additions Deletions Status
src/profile.c +6 -10 modified

Full Patch

diff --git a/src/profile.c b/src/profile.c
index 30d9723..2288312 100644
--- a/src/profile.c
+++ b/src/profile.c
@@ -685,23 +685,19 @@ static void ext_direct_connect(GIOChannel *io, GError *err, gpointer user_data)
 	ext_connect(io, err, conn);
 }
 
-static sdp_record_t *ext_get_record(struct ext_profile *ext)
-{
-	return NULL;
-}
-
 static uint32_t ext_register_record(struct ext_profile *ext,
 							const bdaddr_t *src)
 {
 	sdp_record_t *rec;
 
-	if (ext->record)
-		rec = sdp_xml_parse_record(ext->record, strlen(ext->record));
-	else
-		rec = ext_get_record(ext);
+	if (!ext->record)
+		return 0;
 
-	if (!rec)
+	rec = sdp_xml_parse_record(ext->record, strlen(ext->record));
+	if (!rec) {
+		error("Unable to parse record for %s", ext->name);
 		return 0;
+	}
 
 	if (add_record_to_server(src, rec) < 0) {
 		error("Failed to register service record");