gpt: allow repair function to noop

Simplifies usage a little.
This commit is contained in:
Michael Marineau 2016-09-20 13:40:11 -07:00
parent 3dda6a863a
commit f4e09602dc
2 changed files with 6 additions and 3 deletions

View file

@ -91,9 +91,8 @@ grub_find_next (const char *disk_name,
if (!gpt)
goto done;
if (!grub_gpt_both_valid(gpt))
if (grub_gpt_repair (dev->disk, gpt))
goto done;
if (grub_gpt_repair (dev->disk, gpt))
goto done;
for (i = 0; (part = grub_gpt_get_partentry (gpt, i)) != NULL; i++)
{