From: blueswir1 Date: Thu, 11 Dec 2008 19:39:56 +0000 (+0000) Subject: Remove redundant #ifdef _BSD X-Git-Tag: xen-3.4.0-rc2~71^2^2~351 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=d456ae3e04f17213b773f71d23c6deb64d269211;p=qemu-xen-4.1-testing.git 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 git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5983 c046a42c-6fe2-441c-8c8c-71466251a162 --- diff --git a/osdep.c b/osdep.c index aaced1134..824120f7d 100644 --- a/osdep.c +++ b/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)