svn commit: r314225 - stable/11/sys/fs/ext2fs
Pedro F. Giffuni
pfg at FreeBSD.org
Fri Feb 24 21:35:54 UTC 2017
Author: pfg
Date: Fri Feb 24 21:35:53 2017
New Revision: 314225
URL: https://svnweb.freebsd.org/changeset/base/314225
Log:
MFC r313897:
ext2fs: Remove unused assignment.
The value is re-assigned a few lines later without being read.
Found by: Clang static analyzer
Modified:
stable/11/sys/fs/ext2fs/ext2_htree.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/sys/fs/ext2fs/ext2_htree.c
==============================================================================
--- stable/11/sys/fs/ext2fs/ext2_htree.c Fri Feb 24 21:22:13 2017 (r314224)
+++ stable/11/sys/fs/ext2fs/ext2_htree.c Fri Feb 24 21:35:53 2017 (r314225)
@@ -766,7 +766,6 @@ ext2_htree_add_entry(struct vnode *dvp,
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;
More information about the svn-src-stable
mailing list