From: ThiƩbaud Weksteen Date: Tue, 30 Jun 2015 21:58:24 +0000 (-0700) Subject: scripts/gdb: remove useless global instruction X-Git-Tag: v4.2-rc1~49^2~34 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=15f1d827810e085496eb7ae82aa3ed2dba9901cc;p=thirdparty%2Fkernel%2Flinux.git scripts/gdb: remove useless global instruction Signed-off-by: ThiƩbaud Weksteen Signed-off-by: Jan Kiszka Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/scripts/gdb/linux/tasks.py b/scripts/gdb/linux/tasks.py index 3191f4792398b..862a4ae24d499 100644 --- a/scripts/gdb/linux/tasks.py +++ b/scripts/gdb/linux/tasks.py @@ -20,7 +20,6 @@ task_type = utils.CachedType("struct task_struct") def task_lists(): - global task_type task_ptr_type = task_type.get_type().pointer() init_task = gdb.parse_and_eval("init_task").address t = g = init_task @@ -89,7 +88,6 @@ ia64_task_size = None def get_thread_info(task): - global thread_info_type thread_info_ptr_type = thread_info_type.get_type().pointer() if utils.is_target_arch("ia64"): global ia64_task_size