From f08eeab9ea6e506db5d7fc1d46c376d88ea75171 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Wed, 27 Sep 2017 11:14:55 +0200 Subject: [PATCH] hsp: review UNUSED --- src/classic/hsp_hs.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/classic/hsp_hs.c b/src/classic/hsp_hs.c index 9baea6ac6..225ae9054 100644 --- a/src/classic/hsp_hs.c +++ b/src/classic/hsp_hs.c @@ -128,6 +128,7 @@ static void handle_query_rfcomm_event(uint8_t packet_type, uint16_t channel, uin static btstack_packet_handler_t hsp_hs_callback; static void dummy_notify(uint8_t packet_type, uint16_t channel, uint8_t * event, uint16_t size){ + // ok: no code UNUSED(packet_type); UNUSED(channel); UNUSED(event); @@ -450,7 +451,7 @@ static void hsp_run(void){ static void packet_handler (uint8_t packet_type, uint16_t channel, uint8_t *packet, uint16_t size){ - UNUSED(channel); + UNUSED(channel); // ok: no channel for HCI_EVENT_PACKET and only single active RFCOMM channel // printf("packet_handler type %u, packet[0] %x\n", packet_type, packet[0]); if (packet_type == RFCOMM_DATA_PACKET){ @@ -608,9 +609,9 @@ static void packet_handler (uint8_t packet_type, uint16_t channel, uint8_t *pack } static void handle_query_rfcomm_event(uint8_t packet_type, uint16_t channel, uint8_t *packet, uint16_t size){ - UNUSED(packet_type); - UNUSED(channel); - UNUSED(size); + UNUSED(packet_type); // ok: handling own sdp events + UNUSED(channel); // ok: no channel + UNUSED(size); // ok: handling own sdp events switch (hci_event_packet_get_type(packet)){ case SDP_EVENT_QUERY_RFCOMM_SERVICE: