mirror of
https://github.com/apache/nuttx.git
synced 2026-05-30 05:16:47 +08:00
Fix some warning
This commit is contained in:
@@ -1957,6 +1957,7 @@ static int sam_addmac(struct net_driver_s *dev, const uint8_t *mac)
|
|||||||
unsigned int ndx;
|
unsigned int ndx;
|
||||||
unsigned int bit;
|
unsigned int bit;
|
||||||
|
|
||||||
|
UNUSED(priv);
|
||||||
nllvdbg("MAC: %02x:%02x:%02x:%02x:%02x:%02x\n",
|
nllvdbg("MAC: %02x:%02x:%02x:%02x:%02x:%02x\n",
|
||||||
mac[0], mac[1], mac[2], mac[3], mac[4], mac[5]);
|
mac[0], mac[1], mac[2], mac[3], mac[4], mac[5]);
|
||||||
|
|
||||||
@@ -2030,6 +2031,7 @@ static int sam_rmmac(struct net_driver_s *dev, const uint8_t *mac)
|
|||||||
unsigned int ndx;
|
unsigned int ndx;
|
||||||
unsigned int bit;
|
unsigned int bit;
|
||||||
|
|
||||||
|
UNUSED(priv);
|
||||||
nllvdbg("MAC: %02x:%02x:%02x:%02x:%02x:%02x\n",
|
nllvdbg("MAC: %02x:%02x:%02x:%02x:%02x:%02x\n",
|
||||||
mac[0], mac[1], mac[2], mac[3], mac[4], mac[5]);
|
mac[0], mac[1], mac[2], mac[3], mac[4], mac[5]);
|
||||||
|
|
||||||
|
|||||||
@@ -1997,6 +1997,7 @@ static int sam_addmac(struct net_driver_s *dev, const uint8_t *mac)
|
|||||||
uint32_t regval;
|
uint32_t regval;
|
||||||
unsigned int ndx;
|
unsigned int ndx;
|
||||||
unsigned int bit;
|
unsigned int bit;
|
||||||
|
UNUSED(priv);
|
||||||
|
|
||||||
nllvdbg("MAC: %02x:%02x:%02x:%02x:%02x:%02x\n",
|
nllvdbg("MAC: %02x:%02x:%02x:%02x:%02x:%02x\n",
|
||||||
mac[0], mac[1], mac[2], mac[3], mac[4], mac[5]);
|
mac[0], mac[1], mac[2], mac[3], mac[4], mac[5]);
|
||||||
@@ -2070,6 +2071,7 @@ static int sam_rmmac(struct net_driver_s *dev, const uint8_t *mac)
|
|||||||
unsigned int regaddr2;
|
unsigned int regaddr2;
|
||||||
unsigned int ndx;
|
unsigned int ndx;
|
||||||
unsigned int bit;
|
unsigned int bit;
|
||||||
|
UNUSED(priv);
|
||||||
|
|
||||||
nllvdbg("MAC: %02x:%02x:%02x:%02x:%02x:%02x\n",
|
nllvdbg("MAC: %02x:%02x:%02x:%02x:%02x:%02x\n",
|
||||||
mac[0], mac[1], mac[2], mac[3], mac[4], mac[5]);
|
mac[0], mac[1], mac[2], mac[3], mac[4], mac[5]);
|
||||||
|
|||||||
@@ -1952,6 +1952,7 @@ static int sam_addmac(struct net_driver_s *dev, const uint8_t *mac)
|
|||||||
uint32_t regval;
|
uint32_t regval;
|
||||||
unsigned int ndx;
|
unsigned int ndx;
|
||||||
unsigned int bit;
|
unsigned int bit;
|
||||||
|
UNUSED(priv);
|
||||||
|
|
||||||
nllvdbg("MAC: %02x:%02x:%02x:%02x:%02x:%02x\n",
|
nllvdbg("MAC: %02x:%02x:%02x:%02x:%02x:%02x\n",
|
||||||
mac[0], mac[1], mac[2], mac[3], mac[4], mac[5]);
|
mac[0], mac[1], mac[2], mac[3], mac[4], mac[5]);
|
||||||
@@ -2025,6 +2026,7 @@ static int sam_rmmac(struct net_driver_s *dev, const uint8_t *mac)
|
|||||||
unsigned int regaddr2;
|
unsigned int regaddr2;
|
||||||
unsigned int ndx;
|
unsigned int ndx;
|
||||||
unsigned int bit;
|
unsigned int bit;
|
||||||
|
UNUSED(priv);
|
||||||
|
|
||||||
nllvdbg("MAC: %02x:%02x:%02x:%02x:%02x:%02x\n",
|
nllvdbg("MAC: %02x:%02x:%02x:%02x:%02x:%02x\n",
|
||||||
mac[0], mac[1], mac[2], mac[3], mac[4], mac[5]);
|
mac[0], mac[1], mac[2], mac[3], mac[4], mac[5]);
|
||||||
|
|||||||
Reference in New Issue
Block a user