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:
parent
d08bbb491e
commit
b95f71b5a3
3 changed files with 8 additions and 6 deletions
|
@ -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>
|
2008-01-24 Pavel Roskin <proski@gnu.org>
|
||||||
|
|
||||||
* include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
|
* include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
|
||||||
|
|
|
@ -217,9 +217,6 @@ grub_disk_open (const char *name)
|
||||||
char *raw = (char *) name;
|
char *raw = (char *) name;
|
||||||
unsigned long current_time;
|
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);
|
grub_dprintf ("disk", "Opening `%s'...\n", name);
|
||||||
|
|
||||||
disk = (grub_disk_t) grub_malloc (sizeof (*disk));
|
disk = (grub_disk_t) grub_malloc (sizeof (*disk));
|
||||||
|
|
|
@ -59,9 +59,6 @@ grub_file_open (const char *name)
|
||||||
char *device_name;
|
char *device_name;
|
||||||
char *file_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);
|
device_name = grub_file_get_device_name (name);
|
||||||
if (grub_errno)
|
if (grub_errno)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in a new issue