Skip to content

Commit

Permalink
wireless/bcm43xxx: remove unused tx_queue_count
Browse files Browse the repository at this point in the history
Signed-off-by: chao.an <anchao@xiaomi.com>
  • Loading branch information
anchao authored and xiaoxiang781216 committed Jun 26, 2022
1 parent 4c2b7f3 commit c3b84b9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 21 deletions.
23 changes: 3 additions & 20 deletions drivers/wireless/ieee80211/bcm43xxx/bcmf_sdio.c
Original file line number Diff line number Diff line change
Expand Up @@ -1065,22 +1065,10 @@ struct bcmf_sdio_frame *bcmf_sdio_allocate_frame(FAR struct bcmf_dev_s *priv,
DEBUGPANIC();
}

#if 0
if (!tx ||
sbus->tx_queue_count <
CONFIG_IEEE80211_BROADCOM_FRAME_POOL_SIZE - 1)
#endif
if ((entry = bcmf_dqueue_pop_tail(&sbus->free_queue)) != NULL)
{
if ((entry = bcmf_dqueue_pop_tail(&sbus->free_queue)) != NULL)
{
if (tx)
{
sbus->tx_queue_count += 1;
}

nxsem_post(&sbus->queue_mutex);
break;
}
nxsem_post(&sbus->queue_mutex);
break;
}

nxsem_post(&sbus->queue_mutex);
Expand Down Expand Up @@ -1120,10 +1108,5 @@ void bcmf_sdio_free_frame(FAR struct bcmf_dev_s *priv,

bcmf_dqueue_push(&sbus->free_queue, &sframe->list_entry);

if (sframe->tx)
{
sbus->tx_queue_count -= 1;
}

nxsem_post(&sbus->queue_mutex);
}
1 change: 0 additions & 1 deletion drivers/wireless/ieee80211/bcm43xxx/bcmf_sdio.h
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ struct bcmf_sdio_dev_s
dq_queue_t free_queue; /* Queue of available frames */
dq_queue_t tx_queue; /* Queue of frames to transmit */
dq_queue_t rx_queue; /* Queue of frames used to receive */
volatile int tx_queue_count; /* Count of items in TX queue */
};

/* Structure used to manage SDIO frames */
Expand Down

0 comments on commit c3b84b9

Please sign in to comment.