[Crash-utility] [PATCH 1/2] Remove redundant count variable in cmd_bt

Aaron Tomlin atomlin at redhat.com
Mon Apr 28 10:11:42 UTC 2014


Signed-off-by: Aaron Tomlin <atomlin at redhat.com>
---
 kernel.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/kernel.c b/kernel.c
index cdc53eb..4dd7e5f 100644
--- a/kernel.c
+++ b/kernel.c
@@ -1972,7 +1972,7 @@ cmd_bt(void)
 	int i, c;
 	ulong value;
         struct task_context *tc;
-	int count, subsequent, active;
+	int subsequent, active;
 	struct stack_hook hook;
 	struct bt_info bt_info, bt_setup, *bt;
 	struct reference reference;
@@ -1980,7 +1980,7 @@ cmd_bt(void)
 	ulong tgid;
 
 	tc = NULL;
-	subsequent = active = count = 0;
+	subsequent = active = 0;
 	hook.eip = hook.esp = 0;
 	refptr = 0;
 	bt = &bt_info;
-- 
1.9.0




More information about the Crash-utility mailing list