summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorJohannes Schindelin2017-08-04 12:16:46 +0200
committerDenys Vlasenko2017-08-04 14:52:08 +0200
commit7344755823df5510b089cc5db30f8c1cdebdc5a2 (patch)
treeb75bbbc4d9e63a2898765b8641efb4a9fae0c57a /shell
parentd329e34c96e0429602fe39489586cd61f97a2877 (diff)
downloadbusybox-7344755823df5510b089cc5db30f8c1cdebdc5a2.zip
busybox-7344755823df5510b089cc5db30f8c1cdebdc5a2.tar.gz
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 <johannes.schindelin@gmx.de> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell')
-rw-r--r--shell/ash.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/shell/ash.c b/shell/ash.c
index 2afa5e8..2ad86c1 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)