From e595d35c182e47abcbcddfc5b1de9cc780214ee9 Mon Sep 17 00:00:00 2001 From: Simon Wilkinson Date: Tue, 19 Feb 2013 17:12:54 +0000 Subject: [PATCH] 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 --- src/venus/afsio.c | 1 - 1 file changed, 1 deletion(-) 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) -- 2.39.5