[git commit] ash: remove no-longer-used variable

Denys Vlasenko vda.linux at googlemail.com
Fri Aug 4 12:52:08 UTC 2017

commit: https://git.busybox.net/busybox/commit/?id=7344755823df5510b089cc5db30f8c1cdebdc5a2
branch: https://git.busybox.net/busybox/commit/?id=refs/heads/master

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 at gmx.de>
Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
 shell/ash.c | 2 --
 1 file changed, 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)
-	sv_pos = 0;
 	sv = NULL;
 	if (flags & REDIR_PUSH)

More information about the busybox-cvs mailing list