util/getroot: delete dead code

is_part cannot be non-zero at this point.

Found by: Coveruty scan.
CID: 73838
This commit is contained in:
Andrei Borzenkov 2016-01-09 20:54:54 +03:00
parent 31f6506c57
commit dc27d254f2
1 changed files with 0 additions and 3 deletions

View File

@ -383,9 +383,6 @@ grub_util_biosdisk_get_grub_dev (const char *os_dev)
grub_util_info ("%s starts from %" GRUB_HOST_PRIuLONG_LONG,
os_dev, (unsigned long long) ctx.start);
if (ctx.start == 0 && !is_part)
return name;
grub_util_info ("opening the device %s", name);
disk = grub_disk_open (name);
free (name);