summaryrefslogtreecommitdiffstats
path: root/sys/fs
diff options
context:
space:
mode:
authorpfg <pfg@FreeBSD.org>2017-02-24 21:38:41 +0000
committerpfg <pfg@FreeBSD.org>2017-02-24 21:38:41 +0000
commitc0b794149e3db0bf55c61caf853fd9af85538b45 (patch)
tree23475980c08a18ae559899f83c319da9cfb13e10 /sys/fs
parent2a108a6a9bf713ec35e306c2deb1320530721e9c (diff)
downloadFreeBSD-src-c0b794149e3db0bf55c61caf853fd9af85538b45.zip
FreeBSD-src-c0b794149e3db0bf55c61caf853fd9af85538b45.tar.gz
MFC r313897:
ext2fs: Remove unused assignment. The value is re-assigned a few lines later without being read. Found by: Clang static analyzer
Diffstat (limited to 'sys/fs')
-rw-r--r--sys/fs/ext2fs/ext2_htree.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/sys/fs/ext2fs/ext2_htree.c b/sys/fs/ext2fs/ext2_htree.c
index 6d74070..32796ca 100644
--- a/sys/fs/ext2fs/ext2_htree.c
+++ b/sys/fs/ext2fs/ext2_htree.c
@@ -766,7 +766,6 @@ ext2_htree_add_entry(struct vnode *dvp, struct ext2fs_direct_2 *entry,
root_entires = info.h_levels[0].h_entries;
newidxblock = malloc(blksize, M_TEMP, M_WAITOK | M_ZERO);
dst_node = (struct ext2fs_htree_node *)newidxblock;
- dst_entries = dst_node->h_entries;
memset(&dst_node->h_fake_dirent, 0,
sizeof(dst_node->h_fake_dirent));
dst_node->h_fake_dirent.e2d_reclen = blksize;
OpenPOWER on IntegriCloud