]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
2008-08-11 Robert Millan <rmh@aybabtu.com>
authorrobertmh <robertmh@localhost>
Mon, 11 Aug 2008 10:33:14 +0000 (10:33 +0000)
committerrobertmh <robertmh@localhost>
Mon, 11 Aug 2008 10:33:14 +0000 (10:33 +0000)
        * kern/device.c (grub_device_open): Do not handle grub_disk_open()
        errors.  Leave it to the upper layer to handle them.

ChangeLog
kern/device.c

index 3337228ba465d4c9c899b4172e995b99c1c497bb..d29808bc77d4a7a69267893dc874795211a70d84 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-08-11  Robert Millan  <rmh@aybabtu.com>
+
+       * kern/device.c (grub_device_open): Do not handle grub_disk_open()
+       errors.  Leave it to the upper layer to handle them.
+
 2008-08-09  Christian Franke  <franke@computer.org>
 
        * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
index 0b44f381af7067dce17e8c660e2957692aa49d71..60f25c19237eb6a0598665482a8a22278f3586f8 100644 (file)
@@ -49,11 +49,7 @@ grub_device_open (const char *name)
   /* Try to open a disk.  */
   disk = grub_disk_open (name);
   if (! disk)
-    {
-      grub_print_error ();
-      grub_errno = GRUB_ERR_NONE;
-      goto fail;
-    }
+    goto fail;
 
   dev->disk = disk;
   dev->net = 0;        /* FIXME */