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:
zhanghongyu
2025-04-08 11:01:27 +08:00
committed by Xiang Xiao
parent cbc13cc8aa
commit 3bb8749672
+2 -2
View File
@@ -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 */