Skip to contentSkip to conversation

mm/bootmem.c: cosmetic improvement of code readability

PATCH Applied Adygzhy Ondar 1 participant 1 message Jan 7, 2017 Memory management

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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 +1 -1
index e8a55a3..9fedb27 100644
@@ -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));
 }
Signature · 7 lines
2.7.4

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