Skip to contentSkip to conversation

um-sysrq-remove-needless-variable-sp.patch removed from -mm tree

merged [email protected] 1 participant 1 message Jun 10, 2020

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

The patch titled
Subject: um/sysrq: remove needless variable sp
has been removed from the -mm tree. Its filename was
um-sysrq-remove-needless-variable-sp.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Dmitry Safonov <[email protected]>
Subject: um/sysrq: remove needless variable sp

`sp' is a needless excercise here.

---

 arch/um/kernel/sysrq.c |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
arch/um/kernel/sysrq.c renamed from arch/um/kernel/sysrq.c~um-sysrq-remove-needless-variable-sp +1 -3
@@ -27,7 +27,6 @@ static const struct stacktrace_ops stack
 
 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
 	}
 
 	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;

_

Patches currently in -mm which might be from [email protected] are