From 85bac1ae40123810fd6bd30625999e276af5ab75 Mon Sep 17 00:00:00 2001 From: Michael Meffie Date: Fri, 8 Feb 2013 17:08:28 -0500 Subject: [PATCH] libafs: cleanup redundant assignment 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 Tested-by: BuildBot Reviewed-by: Jeffrey Altman Reviewed-by: Derrick Brashear --- src/afs/VNOPS/afs_vnop_lookup.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/afs/VNOPS/afs_vnop_lookup.c b/src/afs/VNOPS/afs_vnop_lookup.c index 7e16e3a22..0faae09de 100644 --- a/src/afs/VNOPS/afs_vnop_lookup.c +++ b/src/afs/VNOPS/afs_vnop_lookup.c @@ -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; -- 2.39.5