From bc555cb1d82ea51a81534bfa1b6606dc1adfe078 Mon Sep 17 00:00:00 2001 From: Milanka Ringwald Date: Wed, 16 Aug 2017 16:59:24 +0200 Subject: [PATCH] a2dp source: remove unused sep variable --- src/classic/a2dp_source.c | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/src/classic/a2dp_source.c b/src/classic/a2dp_source.c index 214eaab59..3869891b1 100644 --- a/src/classic/a2dp_source.c +++ b/src/classic/a2dp_source.c @@ -160,14 +160,11 @@ static void packet_handler(uint8_t packet_type, uint16_t channel, uint8_t *packe uint8_t signal_identifier; uint8_t status; - avdtp_sep_t sep; uint8_t local_seid; uint8_t remote_seid; uint16_t cid; bd_addr_t address; - uint8_t sep_media_type; - uint8_t sep_type; - + if (packet_type != HCI_EVENT_PACKET) return; if (hci_event_packet_get_type(packet) != HCI_EVENT_AVDTP_META) return; @@ -200,20 +197,10 @@ static void packet_handler(uint8_t packet_type, uint16_t channel, uint8_t *packe } app_state = A2DP_W2_DISCOVER_SEPS; - // printf("AVDTP_SUBEVENT_SIGNALING_CONNECTION_ESTABLISHED, avdtp cid 0x%02x ---\n", cid); avdtp_source_discover_stream_endpoints(cid); break; case AVDTP_SUBEVENT_SIGNALING_SEP_FOUND: - if (app_state != A2DP_W2_DISCOVER_SEPS) return; - sep.seid = avdtp_subevent_signaling_sep_found_get_remote_seid(packet); - sep.in_use = avdtp_subevent_signaling_sep_found_get_in_use(packet); - // use local variables to avoid compiler warning - sep_media_type = avdtp_subevent_signaling_sep_found_get_media_type(packet); - sep.media_type = (avdtp_media_type_t) sep_media_type; - sep_type = avdtp_subevent_signaling_sep_found_get_sep_type(packet); - sep.type = (avdtp_sep_type_t) sep_type; - // printf("found sep: seid %u, in_use %d, media type %d, sep type %d (1-SNK)\n", sep.seid, sep.in_use, sep.media_type, sep.type); break; case AVDTP_SUBEVENT_SIGNALING_MEDIA_CODEC_SBC_CAPABILITY:{