Date: Fri, 24 Feb 2017 21:38:41 +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-10@freebsd.org Subject: svn commit: r314227 - stable/10/sys/fs/ext2fs Message-ID: <201702242138.v1OLcf41071775@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201702242138.v1OLcf41071775>