From 02baa658d2f7e3d0e6005bf28d0adec16829b45b Mon Sep 17 00:00:00 2001 From: Daniel Leung Date: Mon, 29 Jan 2024 15:45:47 -0800 Subject: [PATCH] xtensa: remove unneeded addi in xtensa_userspace_enter There is no need to do a addi to a1 because it is immediately overwritten anyway. Signed-off-by: Daniel Leung --- arch/xtensa/core/userspace.S | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/xtensa/core/userspace.S b/arch/xtensa/core/userspace.S index f385d7223ea..f840aec6c04 100644 --- a/arch/xtensa/core/userspace.S +++ b/arch/xtensa/core/userspace.S @@ -265,8 +265,6 @@ xtensa_userspace_enter: /* stash user stack */ l32i a0, a1, 4 - addi a1, a1, 28 - /* Go back to user stack */ mov a1, a0