Return-Path: Received: from mail-pl1-x643.google.com ([2607:f8b0:4864:20::643]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1iSBgE-0003WU-Gu for linux-um@lists.infradead.org; Wed, 06 Nov 2019 03:08:26 +0000 Received: by mail-pl1-x643.google.com with SMTP id d29so4377237plj.8 for ; Tue, 05 Nov 2019 19:08:22 -0800 (PST) From: Dmitry Safonov Subject: [PATCH 35/50] um/sysrq: Remove needless variable sp Date: Wed, 6 Nov 2019 03:05:26 +0000 Message-Id: <20191106030542.868541-36-dima@arista.com> In-Reply-To: <20191106030542.868541-1-dima@arista.com> References: <20191106030542.868541-1-dima@arista.com> MIME-Version: 1.0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-um" Errors-To: linux-um-bounces+geert=linux-m68k.org@lists.infradead.org To: linux-kernel@vger.kernel.org Cc: Petr Mladek , Richard Weinberger , Dmitry Safonov , Tetsuo Handa , Greg Kroah-Hartman , Jeff Dike , Dmitry Safonov <0x7f454c46@gmail.com>, Steven Rostedt , linux-um@lists.infradead.org, Sergey Senozhatsky , Jiri Slaby , Andrew Morton , Ingo Molnar , Anton Ivanov `sp' is a needless excercise here. Cc: Anton Ivanov Cc: Jeff Dike Cc: Richard Weinberger Cc: linux-um@lists.infradead.org Signed-off-by: Dmitry Safonov --- arch/um/kernel/sysrq.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/arch/um/kernel/sysrq.c b/arch/um/kernel/sysrq.c index c71b5ef7ea8c..c831a1c2eb94 100644 --- a/arch/um/kernel/sysrq.c +++ b/arch/um/kernel/sysrq.c @@ -27,7 +27,6 @@ static const struct stacktrace_ops stackops = { void show_stack(struct task_struct *task, unsigned long *stack) { - unsigned long *sp = stack; struct pt_regs *segv_regs = current->thread.segv_regs; int i; @@ -38,10 +37,9 @@ void show_stack(struct task_struct *task, unsigned long *stack) } if (!stack) - sp = get_stack_pointer(task, segv_regs); + stack = get_stack_pointer(task, segv_regs); pr_info("Stack:\n"); - stack = sp; for (i = 0; i < 3 * STACKSLOTS_PER_LINE; i++) { if (kstack_end(stack)) break; -- 2.23.0 _______________________________________________ linux-um mailing list linux-um@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-um