aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMadhavan T. Venkataraman <[email protected]>2022-04-13 15:59:05 +0100
committerCatalin Marinas <[email protected]>2022-04-22 15:33:13 +0100
commit4f6277e8ac397e5932d9af5c6b3dadefe81d53dc (patch)
tree990ce1c29120b3572e074ffbd496e4682874b3b0
parentb2d229d4ddb17db541098b83524d901257e93845 (diff)
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]>
-rw-r--r--arch/arm64/kernel/stacktrace.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/arch/arm64/kernel/stacktrace.c b/arch/arm64/kernel/stacktrace.c
index e4103e085681..94932ade5c79 100644
--- a/arch/arm64/kernel/stacktrace.c
+++ b/arch/arm64/kernel/stacktrace.c
@@ -70,9 +70,6 @@ static int notrace unwind_frame(struct task_struct *tsk,
unsigned long fp = frame->fp;
struct stack_info info;
- if (!tsk)
- tsk = current;
-
/* Final frame; nothing to unwind */
if (fp == (unsigned long)task_pt_regs(tsk)->stackframe)
return -ENOENT;