Skip to contentSkip to conversation

mm/bootmem.c: cosmetic improvement of code readability

PATCH New [email protected] 1 participant 1 message Feb 22, 2017 Memory management

lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

PATCH 105/142 mm/bootmem.c: cosmetic improvement of code readability

From: Adygzhy Ondar <[email protected]>
Subject: 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()

---

 mm/bootmem.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
mm/bootmem.c renamed from mm/bootmem.c~mm-bootmemc-cosmetic-improvement-of-code-readability +1 -1
diff -puN mm/bootmem.c~mm-bootmemc-cosmetic-improvement-of-code-readability mm/bootmem.c
@@ -53,7 +53,7 @@ early_param("bootmem_debug", bootmem_deb
 
 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));
 }

_