[PATCH] ash: remove no-longer-used variable
Johannes Schindelin
johannes.schindelin at gmx.de
Fri Aug 4 10:16:46 UTC 2017
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>
---
Published-As: https://github.com/dscho/busybox-w32/releases/tag/busybox-unused-sv_pos-v1
Fetch-It-Via: git fetch https://github.com/dscho/busybox-w32 busybox-unused-sv_pos-v1
shell/ash.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/shell/ash.c b/shell/ash.c
index 8c9f4adc6..8b81c42a9 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -5544,12 +5544,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)
base-commit: 4dc86699b57ff35c287ca396d562ec206776694a
--
2.13.3.windows.1.1055.g9b9ea5f2d78
More information about the busybox
mailing list