]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - arch/x86/include/asm/uaccess_64.h
Merge branch 'x86-asm-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git...
[mv-sheeva.git] / arch / x86 / include / asm / uaccess_64.h
index a78c40305447c7ae76194169f2f206a82c010396..316708d5af92d2c5ecd2f7e22e0bc1852b003d7d 100644 (file)
@@ -49,16 +49,15 @@ static inline unsigned long __must_check copy_from_user(void *to,
                                          unsigned long n)
 {
        int sz = __compiletime_object_size(to);
-       int ret = -EFAULT;
 
        might_fault();
        if (likely(sz == -1 || sz >= n))
-               ret = _copy_from_user(to, from, n);
+               n = _copy_from_user(to, from, n);
 #ifdef CONFIG_DEBUG_VM
        else
                WARN(1, "Buffer overflow detected!\n");
 #endif
-       return ret;
+       return n;
 }
 
 static __always_inline __must_check