mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-11-05 20:35:44 +00:00
Remove redundant #ifdef _BSD
since _BSD if already handled in osdep.c:qemu_memalign(), we don't need to check it in the calling function again. getpagesize() is available in BSD. Signed-off-by: Andre Przywara <andre.przywara@amd.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5983 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
ad46db9add
commit
d456ae3e04
1 changed files with 0 additions and 4 deletions
4
osdep.c
4
osdep.c
|
@ -200,11 +200,7 @@ void *qemu_vmalloc(size_t size)
|
|||
if (kqemu_allowed)
|
||||
return kqemu_vmalloc(size);
|
||||
#endif
|
||||
#ifdef _BSD
|
||||
return valloc(size);
|
||||
#else
|
||||
return qemu_memalign(getpagesize(), size);
|
||||
#endif
|
||||
}
|
||||
|
||||
void qemu_vfree(void *ptr)
|
||||
|
|
Loading…
Reference in a new issue