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

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

No files matched your search

+3 -1
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;