From: Jim Meyering Date: Fri, 14 May 2004 15:47:53 +0000 (+0000) Subject: (AD_pop_and_chdir): Eliminate an unnecessary call to AC_stack_top. X-Git-Tag: v5.3.0~1555 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c54468df2ecc43a7859d5762d251106828f8cc58;p=thirdparty%2Fcoreutils.git (AD_pop_and_chdir): Eliminate an unnecessary call to AC_stack_top. --- diff --git a/src/remove.c b/src/remove.c index bded9278df..2973314170 100644 --- a/src/remove.c +++ b/src/remove.c @@ -374,13 +374,13 @@ AD_pop_and_chdir (Dirstack_state *ds) struct AD_ent *top; AD_stack_pop (ds); + top = AD_stack_top (ds); /* Propagate any failure to parent. */ - UPDATE_STATUS (AD_stack_top(ds)->status, old_status); + UPDATE_STATUS (top->status, old_status); assert (AD_stack_height (ds)); - top = AD_stack_top (ds); if (1 < AD_stack_height (ds)) { struct stat sb;