mirror of
https://github.com/apache/nuttx.git
synced 2026-05-29 20:56:47 +08:00
drivers/net/igc.c: fix build error
otherwise, enable CONFIG_NETDEV_STATISTICS will result in a compile error Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
This commit is contained in:
+2
-2
@@ -652,7 +652,7 @@ static FAR netpkt_t *igc_receive(FAR struct netdev_lowerhalf_s *dev)
|
||||
if (rx->errors)
|
||||
{
|
||||
nerr("RX error reported (%"PRIu8")\n", rx->errors);
|
||||
NETDEV_RXERRORS(&priv->dev);
|
||||
NETDEV_RXERRORS(&priv->dev.netdev);
|
||||
netpkt_free(dev, pkt, NETPKT_RX);
|
||||
return NULL;
|
||||
}
|
||||
@@ -691,7 +691,7 @@ static void igc_txdone(FAR struct netdev_lowerhalf_s *dev)
|
||||
if (!(priv->tx[priv->tx_done].status & IGC_TDESC_STATUS_DD))
|
||||
{
|
||||
nerr("tx failed: 0x%" PRIx32 "\n", priv->tx[priv->tx_done].status);
|
||||
NETDEV_TXERRORS(priv->dev);
|
||||
NETDEV_TXERRORS(&priv->dev.netdev);
|
||||
}
|
||||
|
||||
/* Free net packet */
|
||||
|
||||
Reference in New Issue
Block a user