diff options
author | Li RongQing <lirongqing@baidu.com> | 2019-04-26 19:36:30 +0800 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2020-07-27 00:01:31 +1000 |
commit | e2802618970566277cf5cf5c99df66f21ee83766 (patch) | |
tree | 9b6fa996e70c47a8a7ffc3911ac326fb9c9d71bc /arch/powerpc/lib/pmem.c | |
parent | e54e30bca40233139290aecfce932dea9b996516 (diff) |
powerpc/lib: remove memcpy_flushcache redundant return
Align it with other architectures and none of the callers has
been interested its return
Signed-off-by: Li RongQing <lirongqing@baidu.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/1556278590-14727-1-git-send-email-lirongqing@baidu.com
Diffstat (limited to 'arch/powerpc/lib/pmem.c')
-rw-r--r-- | arch/powerpc/lib/pmem.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/powerpc/lib/pmem.c b/arch/powerpc/lib/pmem.c index 21210fa676e5..1550e0d2513a 100644 --- a/arch/powerpc/lib/pmem.c +++ b/arch/powerpc/lib/pmem.c @@ -76,14 +76,12 @@ long __copy_from_user_flushcache(void *dest, const void __user *src, return copied; } -void *memcpy_flushcache(void *dest, const void *src, size_t size) +void memcpy_flushcache(void *dest, const void *src, size_t size) { unsigned long start = (unsigned long) dest; memcpy(dest, src, size); clean_pmem_range(start, start + size); - - return dest; } EXPORT_SYMBOL(memcpy_flushcache); |