kvm: Use sizeof instead of magic number

The 'ecx' register contains size of copied data. Use sizeof(struct e820_entry)
instead of a magic number to make it obvious from the code.

Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
This commit is contained in:
Pekka Enberg
2015-06-01 16:39:40 +01:00
committed by Will Deacon
parent ca82361e44
commit bcae38c8ac
+1 -1
View File
@@ -35,7 +35,7 @@ void e820_query_map(struct e820_query *query)
}
query->eax = SMAP;
query->ecx = 20;
query->ecx = sizeof(struct e820_entry);
query->ebx = ++ndx;
if (ndx >= map_size)