diff options
author | Masahiro Yamada <yamada.m@jp.panasonic.com> | 2014-09-18 13:28:06 +0900 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2014-09-24 18:30:29 -0400 |
commit | c79cba37b3b42cf8fbd71babcd8998867f76fead (patch) | |
tree | 52e446aa0b8c3a623715da84b0fc9bdbd4826c0d /arch/x86/lib | |
parent | 87f13aa00d0279fcc96530404c3a104eb4cb1672 (diff) | |
download | u-boot-imx-c79cba37b3b42cf8fbd71babcd8998867f76fead.zip u-boot-imx-c79cba37b3b42cf8fbd71babcd8998867f76fead.tar.gz u-boot-imx-c79cba37b3b42cf8fbd71babcd8998867f76fead.tar.bz2 |
cosmetic: replace MIN, MAX with min, max
The macro MIN, MAX is defined as the aliase of min, max,
respectively.
Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Diffstat (limited to 'arch/x86/lib')
-rw-r--r-- | arch/x86/lib/physmem.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/lib/physmem.c b/arch/x86/lib/physmem.c index 59b3fe9..b57b2c3 100644 --- a/arch/x86/lib/physmem.c +++ b/arch/x86/lib/physmem.c @@ -189,7 +189,7 @@ phys_addr_t arch_phys_memset(phys_addr_t start, int c, phys_size_t size) /* Handle memory below 4GB. */ if (start <= max_addr) { - phys_size_t low_size = MIN(max_addr + 1 - start, size); + phys_size_t low_size = min(max_addr + 1 - start, size); void *start_ptr = (void *)(uintptr_t)start; assert(((phys_addr_t)(uintptr_t)start) == start); @@ -208,7 +208,7 @@ phys_addr_t arch_phys_memset(phys_addr_t start, int c, phys_size_t size) /* Handle the first partial page. */ if (offset) { phys_addr_t end = - MIN(map_addr + LARGE_PAGE_SIZE, start + size); + min(map_addr + LARGE_PAGE_SIZE, start + size); phys_size_t cur_size = end - start; x86_phys_memset_page(map_addr, offset, c, cur_size); size -= cur_size; |