Commit d456ae3e04f17213b773f71d23c6deb64d269211
1 parent
ad46db9a
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
Showing
1 changed file
with
0 additions
and
4 deletions
osdep.c
| @@ -200,11 +200,7 @@ void *qemu_vmalloc(size_t size) | @@ -200,11 +200,7 @@ void *qemu_vmalloc(size_t size) | ||
| 200 | if (kqemu_allowed) | 200 | if (kqemu_allowed) |
| 201 | return kqemu_vmalloc(size); | 201 | return kqemu_vmalloc(size); |
| 202 | #endif | 202 | #endif |
| 203 | -#ifdef _BSD | ||
| 204 | - return valloc(size); | ||
| 205 | -#else | ||
| 206 | return qemu_memalign(getpagesize(), size); | 203 | return qemu_memalign(getpagesize(), size); |
| 207 | -#endif | ||
| 208 | } | 204 | } |
| 209 | 205 | ||
| 210 | void qemu_vfree(void *ptr) | 206 | void qemu_vfree(void *ptr) |