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 <seppo.takalo@nordicsemi.no>
This commit is contained in:
Seppo Takalo 2024-04-10 10:08:19 +03:00 committed by Carles Cufí
parent e70273a3cd
commit 41d70de91e
1 changed files with 1 additions and 1 deletions

View File

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