From 69705782318226806b6a2b092ec4b63d594d184c Mon Sep 17 00:00:00 2001 From: Perry Ruiter Date: Thu, 29 May 2014 19:24:24 -0700 Subject: [PATCH] afs: Delete unneeded duplicate code Delete a memory release and a goto since natural code flow will result in exactly the same thing. Change-Id: I8fe1400aa2db0e15cbbd577ba18cc1fcdec18447 Reviewed-on: http://gerrit.openafs.org/11179 Tested-by: BuildBot Reviewed-by: Chas Williams - CONTRACTOR Reviewed-by: Benjamin Kaduk Reviewed-by: D Brashear --- src/afs/afs_call.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/afs/afs_call.c b/src/afs/afs_call.c index cdafe0f59..4e3c4c43e 100644 --- a/src/afs/afs_call.c +++ b/src/afs/afs_call.c @@ -1054,10 +1054,6 @@ afs_syscall_call(long parm, long parm2, long parm3, code = 0; AFS_COPYINSTR(AFSKPTR(parm2), tbuffer, AFS_SMALLOCSIZ, &bufferSize, code); - if (code) { - osi_FreeSmallSpace(tbuffer); - goto out; - } if (!code) { tbuffer[AFS_SMALLOCSIZ - 1] = '\0'; /* null-terminate the name */ /* We have the cache dir copied in. Call the cache init routine */ -- 2.39.5