mirror of
https://github.com/clearlinux/kvmtool.git
synced 2026-09-05 13:11:44 +00:00
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:
committed by
Will Deacon
parent
ca82361e44
commit
bcae38c8ac
+1
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user