Skip to content

Commit 4f6277e

Browse files
madvenka786ctmarinas
authored andcommitted
arm64: stacktrace: remove NULL task check from unwind_frame()
Currently, there is a check for a NULL task in unwind_frame(). It is not needed since all current callers pass a non-NULL task. There should be no functional change as a result of this patch. Signed-off-by: Madhavan T. Venkataraman <[email protected]> Reviewed-by: Mark Brown <[email protected]> Signed-off-by: Mark Rutland <[email protected]> Reviewed-by: Kalesh Singh <[email protected]> for the series. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Catalin Marinas <[email protected]>
1 parent b2d229d commit 4f6277e

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

arch/arm64/kernel/stacktrace.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,6 @@ static int notrace unwind_frame(struct task_struct *tsk,
7070
unsigned long fp = frame->fp;
7171
struct stack_info info;
7272

73-
if (!tsk)
74-
tsk = current;
75-
7673
/* Final frame; nothing to unwind */
7774
if (fp == (unsigned long)task_pt_regs(tsk)->stackframe)
7875
return -ENOENT;

0 commit comments

Comments
 (0)