diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2017-04-07 23:54:24 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2017-05-16 05:40:28 +0200 |
commit | 10503bf9435f304b7a74ebfdb8571dec001d751c (patch) | |
tree | 1efae156c35ac60153869339fc4d7c54b12c293d /arch/microblaze | |
parent | kill strlen_user() (diff) | |
download | linux-10503bf9435f304b7a74ebfdb8571dec001d751c.tar.xz linux-10503bf9435f304b7a74ebfdb8571dec001d751c.zip |
get rid of unused __strncpy_from_user() instances
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch/microblaze')
-rw-r--r-- | arch/microblaze/include/asm/uaccess.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/microblaze/include/asm/uaccess.h b/arch/microblaze/include/asm/uaccess.h index 38f2c9ccef10..81f16aadbf9e 100644 --- a/arch/microblaze/include/asm/uaccess.h +++ b/arch/microblaze/include/asm/uaccess.h @@ -355,14 +355,12 @@ raw_copy_to_user(void __user *to, const void *from, unsigned long n) */ extern int __strncpy_user(char *to, const char __user *from, int len); -#define __strncpy_from_user __strncpy_user - static inline long strncpy_from_user(char *dst, const char __user *src, long count) { if (!access_ok(VERIFY_READ, src, 1)) return -EFAULT; - return __strncpy_from_user(dst, src, count); + return __strncpy_user(dst, src, count); } /* |