2008-01-25 Robert Millan <rmh@aybabtu.com>

Revert my previous commits (based on wrong assumption of how grub_errno
        works).

        * kern/disk.c (grub_disk_open): Stop reseting grub_errno.
        * kern/file.c (grub_file_open): Likewise.
This commit is contained in:
robertmh 2008-01-25 20:57:40 +00:00
parent d08bbb491e
commit b95f71b5a3
3 changed files with 8 additions and 6 deletions

View file

@ -1,3 +1,11 @@
2008-01-25 Robert Millan <rmh@aybabtu.com>
Revert my previous commits (based on wrong assumption of how grub_errno
works).
* kern/disk.c (grub_disk_open): Stop reseting grub_errno.
* kern/file.c (grub_file_open): Likewise.
2008-01-24 Pavel Roskin <proski@gnu.org>
* include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares

View file

@ -217,9 +217,6 @@ grub_disk_open (const char *name)
char *raw = (char *) name;
unsigned long current_time;
/* Do not account previous failures when grub_errno is checked for. */
grub_errno = GRUB_ERR_NONE;
grub_dprintf ("disk", "Opening `%s'...\n", name);
disk = (grub_disk_t) grub_malloc (sizeof (*disk));

View file

@ -59,9 +59,6 @@ grub_file_open (const char *name)
char *device_name;
char *file_name;
/* Do not account previous failures when grub_errno is checked for. */
grub_errno = GRUB_ERR_NONE;
device_name = grub_file_get_device_name (name);
if (grub_errno)
return 0;