Commit d3a9d7a3 authored by Adygzhy Ondar's avatar Adygzhy Ondar Committed by Linus Torvalds

mm/bootmem.c: cosmetic improvement of code readability

The obvious number of bits in a byte is replaced by BITS_PER_BYTE macro
in bootmap_bytes()

Link: http://lkml.kernel.org/r/1483781600-5136-1-git-send-email-ondar07@gmail.comSigned-off-by: default avatarAdygzhy Ondar <ondar07@gmail.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 46acef04
...@@ -53,7 +53,7 @@ early_param("bootmem_debug", bootmem_debug_setup); ...@@ -53,7 +53,7 @@ early_param("bootmem_debug", bootmem_debug_setup);
static unsigned long __init bootmap_bytes(unsigned long pages) static unsigned long __init bootmap_bytes(unsigned long pages)
{ {
unsigned long bytes = DIV_ROUND_UP(pages, 8); unsigned long bytes = DIV_ROUND_UP(pages, BITS_PER_BYTE);
return ALIGN(bytes, sizeof(long)); return ALIGN(bytes, sizeof(long));
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment