makefs: Style

Reported by:	rpokala
Fixes:		187084dddd ("makefs: Align the block buffer used in ZFS mode")
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Mark Johnston 2022-08-16 13:07:46 -04:00
parent 8ddb146abc
commit c4d26f027b

View File

@ -70,10 +70,11 @@ struct dnode_cursor {
void
zfs_prep_opts(fsinfo_t *fsopts)
{
zfs_opt_t *zfs;
size_t align;
align = alignof(uint64_t);
zfs_opt_t *zfs = aligned_alloc(align, roundup2(sizeof(*zfs), align));
zfs = aligned_alloc(align, roundup2(sizeof(*zfs), align));
if (zfs == NULL)
err(1, "aligned_alloc");
memset(zfs, 0, sizeof(*zfs));