butc: Remove dead initialisation
authorSimon Wilkinson <sxw@your-file-system.com>
Mon, 25 Feb 2013 10:15:10 +0000 (10:15 +0000)
committerJeffrey Altman <jaltman@your-file-system.com>
Mon, 25 Feb 2013 21:27:00 +0000 (13:27 -0800)
code is set to a real value on every code path, so don't bother
initialising it to 0 midway through the function.

Change-Id: I334286f2ae854c57df781af8df78e5a1bf8e9b2b
Reviewed-on: http://gerrit.openafs.org/9256
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/butc/tcudbprocs.c

index 322c617..b9ecf49 100644 (file)
@@ -821,7 +821,6 @@ readDbTape(struct butm_tapeInfo *tapeInfoPtr,
        if (!code)
            strcpy(tapeName, te.name);
     }
-    code = 0;
 
     while (1) {                        /*w */
        if (interactiveFlag) {  /* need a tape to read */