mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 00:14:22 +08:00
SAM Ethernet: Eliminate a warning
This commit is contained in:
@@ -918,6 +918,9 @@ static int sam_recvframe(struct sam_emac_s *priv)
|
||||
dev = &priv->dev;
|
||||
dev->d_len = 0;
|
||||
|
||||
dest = dev->d_buf;
|
||||
pktlen = 0;
|
||||
|
||||
rxndx = priv->rxndx;
|
||||
rxdesc = &priv->rxdesc[rxndx];
|
||||
isframe = false;
|
||||
|
||||
@@ -929,6 +929,9 @@ static int sam_recvframe(struct sam_emac_s *priv)
|
||||
dev = &priv->dev;
|
||||
dev->d_len = 0;
|
||||
|
||||
dest = dev->d_buf;
|
||||
pktlen = 0;
|
||||
|
||||
rxndx = priv->rxndx;
|
||||
rxdesc = &priv->rxdesc[rxndx];
|
||||
isframe = false;
|
||||
|
||||
@@ -1251,6 +1251,9 @@ static int sam_recvframe(struct sam_emac_s *priv)
|
||||
dev = &priv->dev;
|
||||
dev->d_len = 0;
|
||||
|
||||
dest = dev->d_buf;
|
||||
pktlen = 0;
|
||||
|
||||
rxndx = priv->rxndx;
|
||||
rxdesc = &priv->rxdesc[rxndx];
|
||||
isframe = false;
|
||||
|
||||
@@ -861,6 +861,9 @@ static int sam_recvframe(struct sam_gmac_s *priv)
|
||||
dev = &priv->dev;
|
||||
dev->d_len = 0;
|
||||
|
||||
dest = dev->d_buf;
|
||||
pktlen = 0;
|
||||
|
||||
rxndx = priv->rxndx;
|
||||
rxdesc = &priv->rxdesc[rxndx];
|
||||
isframe = false;
|
||||
|
||||
Reference in New Issue
Block a user