* grub-core/disk/ata.c (grub_ata_real_open): Use grub_error properly.

parent 45fbd9a2
2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/disk/ata.c (grub_ata_real_open): Use grub_error properly.
2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
Add missing video ids to coreboot and ieee1275 video.
......@@ -382,6 +382,8 @@ grub_ata_real_open (int id, int bus)
err = grub_ata_identify (ata);
if (err)
{
if (!grub_errno)
grub_error (GRUB_ERR_UNKNOWN_DEVICE, "no such ATA device");
grub_free (ata);
return NULL;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment