[1799] 2008-08-11 Robert Millan <[email protected]>

Robert Millan <[email protected]>
Newsgroups gmane.comp.boot-loaders.grub.cvs
Message-ID <[email protected]>
Revision: 1799
          http://svn.sv.gnu.org/viewvc/?view=rev&root=grub&revision=1799
Author:   robertmh
Date:     2008-08-11 10:33:14 +0000 (Mon, 11 Aug 2008)

Log Message:
-----------
2008-08-11  Robert Millan  <[email protected]>

        * kern/device.c (grub_device_open): Do not handle grub_disk_open()
        errors.  Leave it to the upper layer to handle them.

Modified Paths:
--------------
    trunk/grub2/ChangeLog
    trunk/grub2/kern/device.c

Modified: trunk/grub2/ChangeLog
===================================================================
--- trunk/grub2/ChangeLog	2008-08-09 12:30:26 UTC (rev 1798)
+++ trunk/grub2/ChangeLog	2008-08-11 10:33:14 UTC (rev 1799)
@@ -1,3 +1,8 @@
+2008-08-11  Robert Millan  <[email protected]>
+
+	* 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  <[email protected]>
 
 	* Makefile.in: Add `target_os' and `enable_grub_pe2elf'.

Modified: trunk/grub2/kern/device.c
===================================================================
--- trunk/grub2/kern/device.c	2008-08-09 12:30:26 UTC (rev 1798)
+++ trunk/grub2/kern/device.c	2008-08-11 10:33:14 UTC (rev 1799)
@@ -49,11 +49,7 @@
   /* 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 */
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.