Date: Fri, 24 Feb 2017 21:35:53 +0000 (UTC) From: "Pedro F. Giffuni" <pfg@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org Subject: svn commit: r314225 - stable/11/sys/fs/ext2fs Message-ID: <201702242135.v1OLZrpE071461@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201702242135.v1OLZrpE071461>