zfsboot: fix build with WITHOUT_LOADER_GELI

Reviewed by:	ian
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D16292
This commit is contained in:
Li-Wen Hsu 2018-07-16 19:21:50 +00:00
parent 2df45ae0d0
commit ceab45b744

View File

@ -708,7 +708,9 @@ main(void)
setheap(heap_next, heap_end); setheap(heap_next, heap_end);
zdsk = malloc(sizeof(struct zfsdsk)); zdsk = malloc(sizeof(struct zfsdsk));
#ifdef LOADER_GELI_SUPPORT
zdsk->gdev = NULL; zdsk->gdev = NULL;
#endif
zdsk->dsk.drive = *(uint8_t *)PTOV(ARGS); zdsk->dsk.drive = *(uint8_t *)PTOV(ARGS);
zdsk->dsk.type = zdsk->dsk.drive & DRV_HARD ? TYPE_AD : TYPE_FD; zdsk->dsk.type = zdsk->dsk.drive & DRV_HARD ? TYPE_AD : TYPE_FD;
zdsk->dsk.unit = zdsk->dsk.drive & DRV_MASK; zdsk->dsk.unit = zdsk->dsk.drive & DRV_MASK;