git: 575ca2c2655c - main - makefs: Remove some redundant initializations

From: Mark Johnston <markj_at_FreeBSD.org>
Date: Mon, 29 Aug 2022 17:05:20 UTC
The branch main has been updated by markj:

URL: https://cgit.FreeBSD.org/src/commit/?id=575ca2c2655c921b2869573780fee5c3bf89bb53

commit 575ca2c2655c921b2869573780fee5c3bf89bb53
Author:     Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2022-08-29 16:33:55 +0000
Commit:     Mark Johnston <markj@FreeBSD.org>
CommitDate: 2022-08-29 16:50:51 +0000

    makefs: Remove some redundant initializations
    
    No functional change intended.
---
 usr.sbin/makefs/zfs/zap.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/usr.sbin/makefs/zfs/zap.c b/usr.sbin/makefs/zfs/zap.c
index 33ca2650cf3d..0bcc77d1aca0 100644
--- a/usr.sbin/makefs/zfs/zap.c
+++ b/usr.sbin/makefs/zfs/zap.c
@@ -215,7 +215,6 @@ zap_micro_write(zfs_opt_t *zfs, zfs_zap_t *zap)
 	dnode = zap->dnode;
 	dnode->dn_maxblkid = 0;
 	dnode->dn_datablkszsec = bytes >> MINBLOCKSHIFT;
-	dnode->dn_flags = DNODE_FLAG_USED_BYTES;
 
 	vdev_pwrite_dnode_data(zfs, dnode, zfs->filebuf, bytes, loc);
 }
@@ -505,10 +504,8 @@ zap_fat_write(zfs_opt_t *zfs, zfs_zap_t *zap)
 	 * Write the whole thing to disk.
 	 */
 	dnode = zap->dnode;
-	dnode->dn_nblkptr = 1;
 	dnode->dn_datablkszsec = blksz >> MINBLOCKSHIFT;
 	dnode->dn_maxblkid = lblkcnt + 1;
-	dnode->dn_flags = DNODE_FLAG_USED_BYTES;
 
 	c = dnode_cursor_init(zfs, zap->os, zap->dnode,
 	    (lblkcnt + 1) * blksz, blksz);