Remove grub_memalign on emu.

This commit is contained in:
Vladimir Serbinenko 2013-12-08 18:12:20 +01:00
parent fbbfb6ab11
commit 50b3a68db9
4 changed files with 10 additions and 23 deletions

View file

@ -83,7 +83,11 @@ grub_netbuff_alloc (grub_size_t len)
len = NETBUFFMINLEN;
len = ALIGN_UP (len, NETBUFF_ALIGN);
#ifdef GRUB_MACHINE_EMU
data = grub_malloc (len + sizeof (*nb));
#else
data = grub_memalign (NETBUFF_ALIGN, len + sizeof (*nb));
#endif
if (!data)
return NULL;
nb = (struct grub_net_buff *) ((grub_properly_aligned_t *) data