summaryrefslogtreecommitdiffstats
path: root/arch/m68k/lib
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2017-03-20 00:55:24 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2017-03-28 18:23:40 -0400
commit7cefa5a05dbda1f0bbbd98e9d2861b09a35cc6ea (patch)
treee2e75444c0097957954f60811bd2c148723758fb /arch/m68k/lib
parent68acfdcb477abdbf875e33e4a950094c8de08f41 (diff)
downloadlinux-7cefa5a05dbda1f0bbbd98e9d2861b09a35cc6ea.tar.gz
linux-7cefa5a05dbda1f0bbbd98e9d2861b09a35cc6ea.tar.bz2
linux-7cefa5a05dbda1f0bbbd98e9d2861b09a35cc6ea.zip
m68k: get rid of zeroing
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch/m68k/lib')
-rw-r--r--arch/m68k/lib/uaccess.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/arch/m68k/lib/uaccess.c b/arch/m68k/lib/uaccess.c
index a76b73abaf64..7646e461aa62 100644
--- a/arch/m68k/lib/uaccess.c
+++ b/arch/m68k/lib/uaccess.c
@@ -30,19 +30,13 @@ unsigned long __generic_copy_from_user(void *to, const void __user *from,
"6:\n"
" .section .fixup,\"ax\"\n"
" .even\n"
- "10: move.l %0,%3\n"
- "7: clr.l (%2)+\n"
- " subq.l #1,%3\n"
- " jne 7b\n"
- " lsl.l #2,%0\n"
+ "10: lsl.l #2,%0\n"
" btst #1,%5\n"
" jeq 8f\n"
- "30: clr.w (%2)+\n"
- " addq.l #2,%0\n"
+ "30: addq.l #2,%0\n"
"8: btst #0,%5\n"
" jeq 6b\n"
- "50: clr.b (%2)+\n"
- " addq.l #1,%0\n"
+ "50: addq.l #1,%0\n"
" jra 6b\n"
" .previous\n"
"\n"