summaryrefslogtreecommitdiff
path: root/osdep.c
diff options
context:
space:
mode:
authorblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2008-12-11 19:39:56 +0000
committerblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2008-12-11 19:39:56 +0000
commitd456ae3e04f17213b773f71d23c6deb64d269211 (patch)
tree1c54d6260bd89fcafbdb1bbc1ca9950dc3948889 /osdep.c
parentad46db9add5bb5d8190f8d0eba4372f1fe6faa8a (diff)
downloadqemu-d456ae3e04f17213b773f71d23c6deb64d269211.tar.gz
qemu-d456ae3e04f17213b773f71d23c6deb64d269211.tar.bz2
qemu-d456ae3e04f17213b773f71d23c6deb64d269211.zip
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
Diffstat (limited to 'osdep.c')
-rw-r--r--osdep.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/osdep.c b/osdep.c
index aaced11349..824120f7d6 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)