mirror of
https://github.com/apache/nuttx.git
synced 2026-08-08 14:07:17 +00:00
Fix Error: chip/stm32_eth.c:1892:7: error: variable 'i' set but not used
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
c66ba22812
commit
04f887b56d
1 changed files with 1 additions and 2 deletions
|
|
@ -1889,7 +1889,6 @@ static void stm32_receive(struct stm32_ethmac_s *priv)
|
|||
static void stm32_freeframe(struct stm32_ethmac_s *priv)
|
||||
{
|
||||
struct eth_txdesc_s *txdesc;
|
||||
int i;
|
||||
|
||||
ninfo("txhead: %p txtail: %p inflight: %d\n",
|
||||
priv->txhead, priv->txtail, priv->inflight);
|
||||
|
|
@ -1901,7 +1900,7 @@ static void stm32_freeframe(struct stm32_ethmac_s *priv)
|
|||
{
|
||||
DEBUGASSERT(priv->inflight > 0);
|
||||
|
||||
for (i = 0; (txdesc->tdes0 & ETH_TDES0_OWN) == 0; i++)
|
||||
while ((txdesc->tdes0 & ETH_TDES0_OWN) == 0)
|
||||
{
|
||||
/* There should be a buffer assigned to all in-flight
|
||||
* TX descriptors.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue