linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mm/bootmem.c: cosmetic improvement of code readability
@ 2017-01-07  9:33 Adygzhy Ondar
  0 siblings, 0 replies; only message in thread
From: Adygzhy Ondar @ 2017-01-07  9:33 UTC (permalink / raw)
  To: akpm; +Cc: tj, linux-mm

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

Signed-off-by: Adygzhy Ondar <ondar07@gmail.com>
---
 mm/bootmem.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mm/bootmem.c b/mm/bootmem.c
index e8a55a3..9fedb27 100644
--- a/mm/bootmem.c
+++ b/mm/bootmem.c
@@ -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));
 }
-- 
2.7.4

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2017-01-07  9:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-07  9:33 [PATCH] mm/bootmem.c: cosmetic improvement of code readability Adygzhy Ondar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).