svn commit: r314227 - stable/10/sys/fs/ext2fs
Pedro F. Giffuni
pfg at FreeBSD.org
Fri Feb 24 21:38:42 UTC 2017
Author: pfg
Date: Fri Feb 24 21:38:41 2017
New Revision: 314227
URL: https://svnweb.freebsd.org/changeset/base/314227
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/10/sys/fs/ext2fs/ext2_htree.c
Directory Properties:
stable/10/ (props changed)
Modified: stable/10/sys/fs/ext2fs/ext2_htree.c
==============================================================================
--- stable/10/sys/fs/ext2fs/ext2_htree.c Fri Feb 24 21:35:59 2017 (r314226)
+++ stable/10/sys/fs/ext2fs/ext2_htree.c Fri Feb 24 21:38:41 2017 (r314227)
@@ -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-all
mailing list