afsio: Remove redundant assignment
authorSimon Wilkinson <sxw@your-file-system.com>
Tue, 19 Feb 2013 17:12:54 +0000 (17:12 +0000)
committerDerrick Brashear <shadow@your-file-system.com>
Sat, 23 Feb 2013 13:23:07 +0000 (05:23 -0800)
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 <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>

src/venus/afsio.c

index 99aea39..bef94a2 100644 (file)
@@ -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)