mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-25 16:49:23 +00:00
* disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
grub_errno if no errors have been detected.
This commit is contained in:
1 parent
1eb8c80241
commit
44cb1ec888
2 files changed
+8
-1
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user