riscv: ftrace: Use ftrace_get_regs helper

Use ftrace_get_regs() helper call to get pt_regs from ftrace_regs struct,
this makes the code simpler.

Signed-off-by: Nanyong Sun <sunnanyong@huawei.com>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
This commit is contained in:
Nanyong Sun 2021-03-05 19:33:31 +08:00 • committed by Palmer Dabbelt
commit 288f6775a0
No known key found for this signature in database
GPG key ID: 2E1319F35FBB1889