From 2845b70f83d6ebcce3074407f93699f5045f85a1 Mon Sep 17 00:00:00 2001 From: jincheng Date: Tue, 7 Sep 2021 16:58:28 +0800 Subject: [PATCH] remove unused variable which caused to build warning --- components/bt/host/bluedroid/stack/l2cap/l2c_ble.c | 6 +++--- components/bt/host/bluedroid/stack/l2cap/l2c_link.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/components/bt/host/bluedroid/stack/l2cap/l2c_ble.c b/components/bt/host/bluedroid/stack/l2cap/l2c_ble.c index 9fe8dfea07..0786f45d06 100644 --- a/components/bt/host/bluedroid/stack/l2cap/l2c_ble.c +++ b/components/bt/host/bluedroid/stack/l2cap/l2c_ble.c @@ -1011,7 +1011,7 @@ void l2c_link_processs_ble_num_bufs (UINT16 num_lm_ble_bufs) *******************************************************************************/ void l2c_ble_link_adjust_allocation (void) { - UINT16 qq, yy = 0, qq_remainder; + UINT16 qq, qq_remainder; tL2C_LCB *p_lcb; UINT16 hi_quota, low_quota; UINT16 num_lowpri_links = 0; @@ -1096,8 +1096,8 @@ void l2c_ble_link_adjust_allocation (void) } } - L2CAP_TRACE_EVENT("l2c_ble_link_adjust_allocation LCB %d Priority: %d XmitQuota: %d", - yy, p_lcb->acl_priority, p_lcb->link_xmit_quota); + L2CAP_TRACE_EVENT("l2c_ble_link_adjust_allocation Priority: %d XmitQuota: %d", + p_lcb->acl_priority, p_lcb->link_xmit_quota); L2CAP_TRACE_EVENT(" SentNotAcked: %d RRUnacked: %d", p_lcb->sent_not_acked, l2cb.round_robin_unacked); diff --git a/components/bt/host/bluedroid/stack/l2cap/l2c_link.c b/components/bt/host/bluedroid/stack/l2cap/l2c_link.c index fabf032abe..3112e2a507 100644 --- a/components/bt/host/bluedroid/stack/l2cap/l2c_link.c +++ b/components/bt/host/bluedroid/stack/l2cap/l2c_link.c @@ -718,7 +718,7 @@ void l2c_info_timeout (tL2C_LCB *p_lcb) *******************************************************************************/ void l2c_link_adjust_allocation (void) { - UINT16 qq, yy = 0, qq_remainder; + UINT16 qq, qq_remainder; tL2C_LCB *p_lcb; UINT16 hi_quota, low_quota; UINT16 num_lowpri_links = 0; @@ -803,8 +803,8 @@ void l2c_link_adjust_allocation (void) } } - L2CAP_TRACE_EVENT ("l2c_link_adjust_allocation LCB %d Priority: %d XmitQuota: %d\n", - yy, p_lcb->acl_priority, p_lcb->link_xmit_quota); + L2CAP_TRACE_EVENT ("l2c_link_adjust_allocation Priority: %d XmitQuota: %d\n", + p_lcb->acl_priority, p_lcb->link_xmit_quota); L2CAP_TRACE_EVENT (" SentNotAcked: %d RRUnacked: %d\n", p_lcb->sent_not_acked, l2cb.round_robin_unacked);