fstrace: Remove redundant variable assignment
authorSimon Wilkinson <sxw@your-file-system.com>
Tue, 19 Feb 2013 17:18:13 +0000 (17:18 +0000)
committerJeffrey Altman <jaltman@your-file-system.com>
Sun, 24 Feb 2013 19:13:37 +0000 (11:13 -0800)
Don't reset the value of 'code' when nothing else references it.

Caught by clang-analyzer

Change-Id: Ifd361ed6eb8c6b8740466f6c1a337669160874f4
Reviewed-on: http://gerrit.openafs.org/9191
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>

src/venus/fstrace.c

index 56daa93..9020e69 100644 (file)
@@ -661,7 +661,6 @@ icl_DumpKernel(FILE *outFilep, char *setname)
                            i, (long)tname, sizeof(tname), 0, 0);
            if (code) {
                if (errno == EBADF) {
-                   code = 0;
                    continue;   /* missing slot, nothing to worry about */
                }
                break;