From 66ec160393003e0a42c62d0008a7010afb04728a Mon Sep 17 00:00:00 2001 From: Milanka Ringwald Date: Tue, 26 Oct 2021 16:34:53 +0200 Subject: [PATCH] avrcp_controller: return on wrong response type --- src/classic/avrcp_controller.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/classic/avrcp_controller.c b/src/classic/avrcp_controller.c index 0c3cbdaa2..283f525a9 100644 --- a/src/classic/avrcp_controller.c +++ b/src/classic/avrcp_controller.c @@ -770,10 +770,7 @@ static void avrcp_controller_handle_notification(avrcp_connection_t *connection, } break; default: - connection->notifications_to_register &= reset_event_mask; - connection->notifications_enabled &= reset_event_mask; - connection->notifications_to_deregister &= reset_event_mask; - break; + return; } avrcp_controller_emit_notification_for_event_id(connection->avrcp_cid, event_id, ctype, payload + pos, size - pos);