From: Simon Wilkinson Date: Tue, 19 Feb 2013 17:12:54 +0000 (+0000) Subject: afsio: Remove redundant assignment X-Git-Tag: upstream/1.8.0_pre1^2~1478 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=e595d35c182e47abcbcddfc5b1de9cc780214ee9;p=packages%2Fo%2Fopenafs.git afsio: Remove redundant assignment tbuf is assigned to during the initialisation phase of all of the for loops that follow, so just remove this assignment Caught by clang-analyzer Change-Id: I3f2ffc8cee93768bd03e0abf3b391e1f6c45c70f Reviewed-on: http://gerrit.openafs.org/9189 Tested-by: BuildBot Reviewed-by: Derrick Brashear --- diff --git a/src/venus/afsio.c b/src/venus/afsio.c index 99aea3946..bef94a21d 100644 --- a/src/venus/afsio.c +++ b/src/venus/afsio.c @@ -1052,7 +1052,6 @@ writeFile(struct cmd_syndesc *as, void *unused) while (!code && bytes) { Len = bytes; length = Len; - tbuf = bufchain; if (Len) { for (tbuf = bufchain; tbuf; tbuf = tbuf->next) { if (tbuf->used == 0)