Merge pull request #51 from lioncash/const

memory_map: Remove unnecessary const
This commit is contained in:
TuxSH 2018-02-26 10:26:58 +01:00 committed by GitHub
commit 18d0a81bd5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -158,7 +158,7 @@ INLINE_UNROLL static inline uintptr_t mmio_get_device_pa(unsigned int device_id)
} }
#ifndef MEMORY_MAP_USE_IDENTIY_MAPPING #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; size_t offset = 0;
for(unsigned int i = 0; i < device_id; i++) { for(unsigned int i = 0; i < device_id; i++) {
offset += g_devices[i].size; offset += g_devices[i].size;