]> git.proxmox.com Git - qemu.git/blobdiff - bsd-user/mmap.c
clean unnecessary code: don't check g_strdup arg for NULL
[qemu.git] / bsd-user / mmap.c
index 5d6cffc45857326fabef87ad177377c9ab245758..aae8ea10beeb0a2abc9cd2c4c3dc830c64f130ea 100644 (file)
@@ -74,7 +74,7 @@ void mmap_unlock(void)
 }
 #endif
 
-void *qemu_vmalloc(size_t size)
+static void *bsd_vmalloc(size_t size)
 {
     void *p;
     mmap_lock();
@@ -98,7 +98,7 @@ void *g_malloc(size_t size)
 {
     char * p;
     size += 16;
-    p = qemu_vmalloc(size);
+    p = bsd_vmalloc(size);
     *(size_t *)p = size;
     return p + 16;
 }