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
@ -1889,7 +1889,6 @@ static void stm32_receive(struct stm32_ethmac_s *priv)
|
|||||||
static void stm32_freeframe(struct stm32_ethmac_s *priv)
|
static void stm32_freeframe(struct stm32_ethmac_s *priv)
|
||||||
{
|
{
|
||||||
struct eth_txdesc_s *txdesc;
|
struct eth_txdesc_s *txdesc;
|
||||||
int i;
|
|
||||||
|
|
||||||
ninfo("txhead: %p txtail: %p inflight: %d\n",
|
ninfo("txhead: %p txtail: %p inflight: %d\n",
|
||||||
priv->txhead, priv->txtail, priv->inflight);
|
priv->txhead, priv->txtail, priv->inflight);
|
||||||
@ -1901,7 +1900,7 @@ static void stm32_freeframe(struct stm32_ethmac_s *priv)
|
|||||||
{
|
{
|
||||||
DEBUGASSERT(priv->inflight > 0);
|
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
|
/* There should be a buffer assigned to all in-flight
|
||||||
* TX descriptors.
|
* TX descriptors.
|
||||||
|
Loading…
Reference in New Issue
Block a user