ash: remove no-longer-used variable
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Fri, 4 Aug 2017 10:16:46 +0000 (12:16 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Fri, 4 Aug 2017 12:52:08 +0000 (14:52 +0200)
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>
shell/ash.c

index 2afa5e83d76f364b49283ec3242c204bf7718c4a..2ad86c187f72ed22075183e80d8ef8be1309c7a5 100644 (file)
@@ -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)