From b84bd5ee0b76155c3d3acc2d70e10a020ccf1bbb Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Mon, 13 Apr 2020 16:43:42 -0700 Subject: [PATCH] profile: Remove duplicate initialization of version and profile These values are always set later by send_new_connection. --- src/profile.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/profile.c b/src/profile.c index f00883431..9ccdd90ee 100644 --- a/src/profile.c +++ b/src/profile.c @@ -1595,9 +1595,6 @@ static void record_cb(sdp_list_t *recs, int err, gpointer user_data) if (conn->psm == 0 && sdp_get_proto_desc(protos, OBEX_UUID)) conn->psm = get_goep_l2cap_psm(rec); - conn->features = get_supported_features(rec); - conn->version = get_profile_version(rec); - sdp_list_foreach(protos, (sdp_list_func_t) sdp_list_free, NULL); sdp_list_free(protos, NULL); -- 2.47.3