[klibc] [PATCH] [MEMALLOC] remove unused variable

Greg Thelen gthelen at google.com
Wed Nov 30 15:57:04 PST 2011


Since commit 6ee30a14afac681adb1d62361ebcb0c9b6ba3153 ([klibc]
[MEMALLOC] Add pushstackmark), the 'oldstackp' local variable has been
unused.  This change deletes the unused variable.

Signed-off-by: Greg Thelen <gthelen at google.com>
---
 usr/dash/memalloc.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/usr/dash/memalloc.c b/usr/dash/memalloc.c
index e75e609..406d0c8 100644
--- a/usr/dash/memalloc.c
+++ b/usr/dash/memalloc.c
@@ -213,13 +213,11 @@ growstackblock(void)
 		newlen += 128;
 
 	if (stacknxt == stackp->space && stackp != &stackbase) {
-		struct stack_block *oldstackp;
 		struct stack_block *sp;
 		struct stack_block *prevstackp;
 		size_t grosslen;
 
 		INTOFF;
-		oldstackp = stackp;
 		sp = stackp;
 		prevstackp = sp->prev;
 		grosslen = newlen + sizeof(struct stack_block) - MINSIZE;
-- 
1.7.3.1



More information about the klibc mailing list