loader: 313329 missed ZFS guard in loader/main.c

Missing guard added.

Reviewed by:	imp, allanjude
Approved by:	imp (mentor), allanjude (mentor)
Differential Revision:	https://reviews.freebsd.org/D9458
This commit is contained in:
Toomas Soome 2017-02-06 10:57:54 +00:00
parent faa95641b3
commit 8df1c280b8

View File

@ -185,6 +185,7 @@ find_currdev(EFI_LOADED_IMAGE *img)
int unit;
uint64_t extra;
#ifdef EFI_ZFS_BOOT
/* Did efi_zfs_probe() detect the boot pool? */
if (pool_guid != 0) {
struct zfs_devdesc currdev;
@ -203,6 +204,7 @@ find_currdev(EFI_LOADED_IMAGE *img)
env_nounset);
return (0);
}
#endif /* EFI_ZFS_BOOT */
/* We have device lists for hd, cd, fd, walk them all. */
pdi_list = efiblk_get_pdinfo_list(&efipart_hddev);