]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
missing part of previous commit
authorphcoder <phcoder@localhost>
Fri, 4 Sep 2009 13:50:32 +0000 (13:50 +0000)
committerphcoder <phcoder@localhost>
Fri, 4 Sep 2009 13:50:32 +0000 (13:50 +0000)
loader/i386/xnu.c

index 39b02c7a3aa19e58a317849ecbbbd0b782701a67..275b50dbcfacc12f5d2b8f50a0a842c7bf33277f 100644 (file)
@@ -258,7 +258,7 @@ grub_cpu_xnu_fill_devicetree (void)
     2 * (utf16_strlen (SYSTEM_TABLE_PTR (firmware_vendor)) + 1);
   curval->data = grub_malloc (curval->datasize);
   if (! curval->data)
-    return grub_error (GRUB_ERR_OUT_OF_MEMORY, "couldn't create device tree");
+    return grub_errno;
   grub_memcpy (curval->data, SYSTEM_TABLE_PTR (firmware_vendor),
               curval->datasize);
 
@@ -362,8 +362,7 @@ grub_cpu_xnu_fill_devicetree (void)
       curval->datasize = sizeof (guid);
       curval->data = grub_malloc (curval->datasize);
       if (! curval->data)
-       return grub_error (GRUB_ERR_OUT_OF_MEMORY,
-                          "couldn't create device tree");
+       return grub_errno;
       grub_memcpy (curval->data, &guid, curval->datasize);
 
       /* The value "table". */