* disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use

grub_errno if no errors have been detected.
This commit is contained in:
proski 2008-01-14 04:16:20 +00:00
parent 1eb8c80241
commit 44cb1ec888
2 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2008-01-13 Pavel Roskin <proski@gnu.org>
* disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
grub_errno if no errors have been detected.
2008-01-12 Robert Millan <rmh@aybabtu.com>
* include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.

View file

@ -104,9 +104,11 @@ grub_ofdisk_open (const char *name, grub_disk_t disk)
/* XXX: Read this, somehow. */
disk->has_partitions = 1;
disk->data = (void *) dev_ihandle;
grub_free (devpath);
return 0;
fail:
if (grub_errno && dev_ihandle)
if (dev_ihandle)
grub_ieee1275_close (dev_ihandle);
grub_free (devpath);
return grub_errno;