From edbbcf5b6283db5f3d9b7b06b072bb43b5019baf Mon Sep 17 00:00:00 2001 From: Simon Wilkinson Date: Tue, 19 Feb 2013 14:51:30 +0000 Subject: [PATCH] volser: Remove masked assignment in vol_split The declaration (and assignment) to size at the outermost scope in the copyVnodes function is masked by a later declaration at a inner scope. Just remove the outer declaration to clarify what's happening. Caught by clang-analyzer Change-Id: If23bdcf8a4c2d23d6224762fecce35be9cf15873 Reviewed-on: http://gerrit.openafs.org/9168 Tested-by: BuildBot Reviewed-by: Derrick Brashear Reviewed-by: Jeffrey Altman --- src/volser/vol_split.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/volser/vol_split.c b/src/volser/vol_split.c index 5b39496cb..29f564668 100644 --- a/src/volser/vol_split.c +++ b/src/volser/vol_split.c @@ -314,7 +314,6 @@ afs_int32 copyVnodes(struct Msg *m, Volume *vol, Volume *newvol, FdHandle_t *newfdP = 0; struct VnodeClassInfo *vcp = &VnodeClassInfo[class]; struct VnodeExtract *e; - afs_sfsize_t size; afs_uint64 offset; Inode ino, newino; @@ -332,7 +331,6 @@ afs_int32 copyVnodes(struct Msg *m, Volume *vol, Volume *newvol, code = EIO; goto Bad_Copy; } - size = FDH_SIZE(fdP); for (i=0; idiskSize; if (FDH_PREAD(newfdP, vnode2, vcp->diskSize, newoffset) != vcp->diskSize) { -- 2.39.5