Skip to content

Commit

Permalink
mm/bootmem.c: cosmetic improvement of code readability
Browse files Browse the repository at this point in the history
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.com
Signed-off-by: Adygzhy Ondar <ondar07@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Adygzhy Ondar authored and Linus Torvalds committed Feb 23, 2017
1 parent 46acef0 commit d3a9d7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mm/bootmem.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ early_param("bootmem_debug", bootmem_debug_setup);

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));
}
Expand Down

0 comments on commit d3a9d7a

Please sign in to comment.