From b328effd9b61fc28679aa4565d4150a478bc8f93 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sun, 25 Feb 2018 23:56:44 -0500 Subject: [PATCH] memory_map: Remove unnecessary const Since the return value isn't a pointer thing doesn't have much use. --- exosphere/src/memory_map.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exosphere/src/memory_map.h b/exosphere/src/memory_map.h index fe728ca58..2b9f809d2 100644 --- a/exosphere/src/memory_map.h +++ b/exosphere/src/memory_map.h @@ -158,7 +158,7 @@ INLINE_UNROLL static inline uintptr_t mmio_get_device_pa(unsigned int device_id) } #ifndef MEMORY_MAP_USE_IDENTIY_MAPPING -INLINE_UNROLL static inline const uintptr_t mmio_get_device_address(unsigned int device_id) { +INLINE_UNROLL static inline uintptr_t mmio_get_device_address(unsigned int device_id) { size_t offset = 0; for(unsigned int i = 0; i < device_id; i++) { offset += g_devices[i].size;