From 17cb79bf3a31288f3ed9d8ba8065c61143a103c6 Mon Sep 17 00:00:00 2001 From: louislee91 Date: Mon, 14 Oct 2024 20:01:56 +0800 Subject: [PATCH] avdtp: delete unnecessary code --- src/classic/avdtp.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/classic/avdtp.c b/src/classic/avdtp.c index ce5080d279..c666817b10 100644 --- a/src/classic/avdtp.c +++ b/src/classic/avdtp.c @@ -861,9 +861,7 @@ void avdtp_packet_handler(uint8_t packet_type, uint16_t channel, uint8_t *packet } stream_endpoint = avdtp_get_stream_endpoint_for_l2cap_cid(channel); - if (!stream_endpoint){ - if (!connection) break; - handle_l2cap_data_packet_for_signaling_connection(connection, packet, size); + if (stream_endpoint == NULL){ break; }