From 33bd43610c03b7550766c939978943d492dbb4b4 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Thu, 22 Feb 2018 21:04:11 -0500 Subject: [PATCH] mmu: Fix loop index variable name in mmio_get_device_address --- exosphere/mmu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exosphere/mmu.h b/exosphere/mmu.h index 602f447ef..575c0f73e 100644 --- a/exosphere/mmu.h +++ b/exosphere/mmu.h @@ -221,7 +221,7 @@ static const struct { static inline uintptr_t mmio_get_device_address(unsigned int device_id) { size_t offset = 0; - for(unsigned int i = 0; i < devid; i++) { + for(unsigned int i = 0; i < device_id; i++) { offset += devices[i].size; offset += 0x1000; /* guard page */ }