aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include/asm/processor.h
diff options
context:
space:
mode:
authorMichael Ellerman <mpe@ellerman.id.au>2020-04-28 22:31:52 +1000
committerMichael Ellerman <mpe@ellerman.id.au>2020-05-15 11:58:55 +1000
commit24ac99e97fa7b8f0db9b48413a76def9cf73295c (patch)
treeef88ec673b15882982a623be9336c1b8c89bb1d1 /arch/powerpc/include/asm/processor.h
parentpowerpc/64: Don't initialise init_task->thread.regs (diff)
downloadlinux-dev-24ac99e97fa7b8f0db9b48413a76def9cf73295c.tar.xz
linux-dev-24ac99e97fa7b8f0db9b48413a76def9cf73295c.zip
powerpc: Drop unneeded cast in task_pt_regs()
There's no need to cast in task_pt_regs() as tsk->thread.regs should already be a struct pt_regs. If someone's using task_pt_regs() on something that's not a task but happens to have a thread.regs then we'll deal with them later. Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20200428123152.73566-1-mpe@ellerman.id.au
Diffstat (limited to 'arch/powerpc/include/asm/processor.h')
-rw-r--r--arch/powerpc/include/asm/processor.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/include/asm/processor.h b/arch/powerpc/include/asm/processor.h
index a51964b4ec42..5ab202055d5a 100644
--- a/arch/powerpc/include/asm/processor.h
+++ b/arch/powerpc/include/asm/processor.h
@@ -306,7 +306,7 @@ struct thread_struct {
}
#endif
-#define task_pt_regs(tsk) ((struct pt_regs *)(tsk)->thread.regs)
+#define task_pt_regs(tsk) ((tsk)->thread.regs)
unsigned long get_wchan(struct task_struct *p);