summaryrefslogtreecommitdiff
path: root/arch/powerpc/lib
diff options
context:
space:
mode:
authorLi RongQing <lirongqing@baidu.com>2019-04-26 14:36:30 +0300
committerMichael Ellerman <mpe@ellerman.id.au>2020-07-26 17:01:31 +0300
commite2802618970566277cf5cf5c99df66f21ee83766 (patch)
tree9b6fa996e70c47a8a7ffc3911ac326fb9c9d71bc /arch/powerpc/lib
parente54e30bca40233139290aecfce932dea9b996516 (diff)
downloadlinux-e2802618970566277cf5cf5c99df66f21ee83766.tar.xz
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')
-rw-r--r--arch/powerpc/lib/pmem.c4
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);