diff options
author | ThiƩbaud Weksteen <thiebaud@weksteen.fr> | 2015-06-30 17:58:24 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-06-30 22:44:58 -0400 |
commit | 15f1d827810e085496eb7ae82aa3ed2dba9901cc (patch) | |
tree | c430afb3a195abce367091a9874777bbb6e43726 /scripts/gdb/linux/tasks.py | |
parent | a930850b628497601309513dc894ea23218a19fa (diff) |
scripts/gdb: remove useless global instruction
Signed-off-by: ThiƩbaud Weksteen <thiebaud@weksteen.fr>
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'scripts/gdb/linux/tasks.py')
-rw-r--r-- | scripts/gdb/linux/tasks.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/scripts/gdb/linux/tasks.py b/scripts/gdb/linux/tasks.py index 3191f4792398..862a4ae24d49 100644 --- a/scripts/gdb/linux/tasks.py +++ b/scripts/gdb/linux/tasks.py | |||
@@ -20,7 +20,6 @@ task_type = utils.CachedType("struct task_struct") | |||
20 | 20 | ||
21 | 21 | ||
22 | def task_lists(): | 22 | def task_lists(): |
23 | global task_type | ||
24 | task_ptr_type = task_type.get_type().pointer() | 23 | task_ptr_type = task_type.get_type().pointer() |
25 | init_task = gdb.parse_and_eval("init_task").address | 24 | init_task = gdb.parse_and_eval("init_task").address |
26 | t = g = init_task | 25 | t = g = init_task |
@@ -89,7 +88,6 @@ ia64_task_size = None | |||
89 | 88 | ||
90 | 89 | ||
91 | def get_thread_info(task): | 90 | def get_thread_info(task): |
92 | global thread_info_type | ||
93 | thread_info_ptr_type = thread_info_type.get_type().pointer() | 91 | thread_info_ptr_type = thread_info_type.get_type().pointer() |
94 | if utils.is_target_arch("ia64"): | 92 | if utils.is_target_arch("ia64"): |
95 | global ia64_task_size | 93 | global ia64_task_size |