From 41d70de91e026b11ea8f89be59b7865e56dc3e75 Mon Sep 17 00:00:00 2001 From: Seppo Takalo Date: Wed, 10 Apr 2024 10:08:19 +0300 Subject: [PATCH] drivers: eth: stellaris: Fix build error Apparently there was a typo in the last commit. Looks like it was refactored without trying to build. Signed-off-by: Seppo Takalo --- drivers/ethernet/eth_stellaris.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/ethernet/eth_stellaris.c b/drivers/ethernet/eth_stellaris.c index 30de5d47ad2..dc7503e67af 100644 --- a/drivers/ethernet/eth_stellaris.c +++ b/drivers/ethernet/eth_stellaris.c @@ -249,7 +249,7 @@ static void eth_stellaris_isr(const struct device *dev) * to get how many packets are in the Ethernet. */ num_packets = sys_read32(REG_MACNP); - for (int i = 0; i < np; i++) { + for (int i = 0; i < num_packets; i++) { if (eth_stellaris_rx(dev) != 0) { break; }