Skip to content

Commit d4b3e01

Browse files
mcd500palmer-dabbelt
authored andcommitted
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 <[email protected]> Fixes: ca6eaaa ("riscv: __asm_copy_to-from_user: Optimize unaligned memory access and pipeline stall") Signed-off-by: Palmer Dabbelt <[email protected]>
1 parent 22b5f16 commit d4b3e01

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

arch/riscv/lib/uaccess.S

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ ENTRY(__asm_copy_from_user)
3030
* t0 - end of uncopied dst
3131
*/
3232
add t0, a0, a2
33-
bgtu a0, t0, 5f
3433

3534
/*
3635
* Use byte copy only if too small.

0 commit comments

Comments
 (0)