SAM Ethernet: Eliminate a warning

This commit is contained in:
Gregory Nutt 2014-07-02 17:35:41 -06:00
parent 596dbc20ef
commit fb44a97359
4 changed files with 12 additions and 0 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;