From 7344755823df5510b089cc5db30f8c1cdebdc5a2 Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Fri, 4 Aug 2017 12:16:46 +0200 Subject: ash: remove no-longer-used variable As of 035486c75 (ash: significant overhaul of redirect saving logic, 2017-07-31), the sv_pos variable is no longer used (just assigned to, with no further effect). Let's just remove it. Signed-off-by: Johannes Schindelin Signed-off-by: Denys Vlasenko --- shell/ash.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'shell') diff --git a/shell/ash.c b/shell/ash.c index 2afa5e83d..2ad86c187 100644 --- a/shell/ash.c +++ b/shell/ash.c @@ -5546,12 +5546,10 @@ static void redirect(union node *redir, int flags) { struct redirtab *sv; - int sv_pos; if (!redir) return; - sv_pos = 0; sv = NULL; INT_OFF; if (flags & REDIR_PUSH) -- cgit v1.2.3