Re: [PATCH] powerpc: Drop unneeded cast in task_pt_regs()

2020-05-20 Thread Michael Ellerman
On Tue, 28 Apr 2020 22:31:52 +1000, Michael Ellerman wrote: > 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.

[PATCH] powerpc: Drop unneeded cast in task_pt_regs()

2020-04-28 Thread Michael Ellerman
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 ---