Commit d456ae3e04f17213b773f71d23c6deb64d269211

Authored by blueswir1
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
... ... @@ -200,11 +200,7 @@ void *qemu_vmalloc(size_t size)
200 200 if (kqemu_allowed)
201 201 return kqemu_vmalloc(size);
202 202 #endif
203   -#ifdef _BSD
204   - return valloc(size);
205   -#else
206 203 return qemu_memalign(getpagesize(), size);
207   -#endif
208 204 }
209 205  
210 206 void qemu_vfree(void *ptr)
... ...