libafs: cleanup redundant assignment
authorMichael Meffie <mmeffie@sinenomine.net>
Fri, 8 Feb 2013 22:08:28 +0000 (17:08 -0500)
committerDerrick Brashear <shadow@your-file-system.com>
Tue, 12 Feb 2013 19:39:49 +0000 (11:39 -0800)
Cleanup redundant clearing of the avcp pointer in lookup, which
looks to be a cut and paste error from the ibm afs days.

Change-Id: Ib554d862bd8485be2a4dbeb38fcaacac57c1e818
Reviewed-on: http://gerrit.openafs.org/9085
Reviewed-by: Chas Williams - CONTRACTOR <chas@cmf.nrl.navy.mil>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>

src/afs/VNOPS/afs_vnop_lookup.c

index 7e16e3a..0faae09 100644 (file)
@@ -1430,11 +1430,8 @@ afs_lookup(OSI_VC_DECL(adp), char *aname, struct vcache **avcp, afs_ucred_t *acr
     if (code)
        goto done;
 
-    *avcp = NULL;              /* Since some callers don't initialize it */
-
     /* come back to here if we encounter a non-existent object in a read-only
      * volume's directory */
-
   redo:
     *avcp = NULL;              /* Since some callers don't initialize it */
     bulkcode = 0;