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.
This commit is contained in:
robertmh 2008-08-11 10:33:14 +00:00
parent 2d05bc6a3e
commit e352e9cde3
2 changed files with 6 additions and 5 deletions

View file

@ -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> 2008-08-09 Christian Franke <franke@computer.org>
* Makefile.in: Add `target_os' and `enable_grub_pe2elf'. * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.

View file

@ -49,11 +49,7 @@ grub_device_open (const char *name)
/* Try to open a disk. */ /* Try to open a disk. */
disk = grub_disk_open (name); disk = grub_disk_open (name);
if (! disk) if (! disk)
{ goto fail;
grub_print_error ();
grub_errno = GRUB_ERR_NONE;
goto fail;
}
dev->disk = disk; dev->disk = disk;
dev->net = 0; /* FIXME */ dev->net = 0; /* FIXME */