aboutsummaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorAkira Tsukamoto2021-07-20 17:52:36 +0900
committerPalmer Dabbelt2021-07-23 17:49:07 -0700
commitd4b3e0105e3c2411af666a50b1bf2d25656a5e83 (patch)
tree2c34904e6fcde2d513473c90b90f237510b13fbc /arch
parent22b5f16ffeff38938ad7420a2bfa3c281c36fd17 (diff)
riscv: __asm_copy_to-from_user: Remove unnecessary size check
Clean up: The size of 0 will be evaluated in the next step. Not required here. Signed-off-by: Akira Tsukamoto <akira.tsukamoto@gmail.com> Fixes: ca6eaaa210de ("riscv: __asm_copy_to-from_user: Optimize unaligned memory access and pipeline stall") Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/riscv/lib/uaccess.S1
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/riscv/lib/uaccess.S b/arch/riscv/lib/uaccess.S
index 279876821969..54d497a03164 100644
--- a/arch/riscv/lib/uaccess.S
+++ b/arch/riscv/lib/uaccess.S
@@ -30,7 +30,6 @@ ENTRY(__asm_copy_from_user)
* t0 - end of uncopied dst
*/
add t0, a0, a2
- bgtu a0, t0, 5f
/*
* Use byte copy only if too small.