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:
parent
31f6506c57
commit
dc27d254f2
1 changed files with 0 additions and 3 deletions
|
@ -383,9 +383,6 @@ grub_util_biosdisk_get_grub_dev (const char *os_dev)
|
||||||
grub_util_info ("%s starts from %" GRUB_HOST_PRIuLONG_LONG,
|
grub_util_info ("%s starts from %" GRUB_HOST_PRIuLONG_LONG,
|
||||||
os_dev, (unsigned long long) ctx.start);
|
os_dev, (unsigned long long) ctx.start);
|
||||||
|
|
||||||
if (ctx.start == 0 && !is_part)
|
|
||||||
return name;
|
|
||||||
|
|
||||||
grub_util_info ("opening the device %s", name);
|
grub_util_info ("opening the device %s", name);
|
||||||
disk = grub_disk_open (name);
|
disk = grub_disk_open (name);
|
||||||
free (name);
|
free (name);
|
||||||
|
|
Loading…
Reference in a new issue