projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
22b5f16
)
riscv: __asm_copy_to-from_user: Remove unnecessary size check
author
Akira Tsukamoto
<akira.tsukamoto@gmail.com>
Tue, 20 Jul 2021 08:52:36 +0000
(17:52 +0900)
committer
Palmer Dabbelt
<palmerdabbelt@google.com>
Sat, 24 Jul 2021 00:49:07 +0000
(17:49 -0700)
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>
arch/riscv/lib/uaccess.S
patch
|
blob
|
history
diff --git
a/arch/riscv/lib/uaccess.S
b/arch/riscv/lib/uaccess.S
index 279876821969b33806e9ce11ec9e45848ec46a5d..54d497a03164250bbc7b85c060eb4efd0e3e38c4 100644
(file)
--- 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.