diff options
Diffstat (limited to 'include/asm-sparc64/uaccess.h')
-rw-r--r-- | include/asm-sparc64/uaccess.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/asm-sparc64/uaccess.h b/include/asm-sparc64/uaccess.h index bc8ddbb1cbed..203e8eee6351 100644 --- a/include/asm-sparc64/uaccess.h +++ b/include/asm-sparc64/uaccess.h | |||
@@ -251,7 +251,7 @@ copy_from_user(void *to, const void __user *from, unsigned long size) | |||
251 | { | 251 | { |
252 | unsigned long ret = ___copy_from_user(to, from, size); | 252 | unsigned long ret = ___copy_from_user(to, from, size); |
253 | 253 | ||
254 | if (ret) | 254 | if (unlikely(ret)) |
255 | ret = copy_from_user_fixup(to, from, size); | 255 | ret = copy_from_user_fixup(to, from, size); |
256 | return ret; | 256 | return ret; |
257 | } | 257 | } |
@@ -267,7 +267,7 @@ copy_to_user(void __user *to, const void *from, unsigned long size) | |||
267 | { | 267 | { |
268 | unsigned long ret = ___copy_to_user(to, from, size); | 268 | unsigned long ret = ___copy_to_user(to, from, size); |
269 | 269 | ||
270 | if (ret) | 270 | if (unlikely(ret)) |
271 | ret = copy_to_user_fixup(to, from, size); | 271 | ret = copy_to_user_fixup(to, from, size); |
272 | return ret; | 272 | return ret; |
273 | } | 273 | } |
@@ -283,7 +283,7 @@ copy_in_user(void __user *to, void __user *from, unsigned long size) | |||
283 | { | 283 | { |
284 | unsigned long ret = ___copy_in_user(to, from, size); | 284 | unsigned long ret = ___copy_in_user(to, from, size); |
285 | 285 | ||
286 | if (ret) | 286 | if (unlikely(ret)) |
287 | ret = copy_in_user_fixup(to, from, size); | 287 | ret = copy_in_user_fixup(to, from, size); |
288 | return ret; | 288 | return ret; |
289 | } | 289 | } |