summaryrefslogtreecommitdiff
path: root/arch/s390/lib/string.c
diff options
context:
space:
mode:
authorHeiko Carstens <hca@linux.ibm.com>2021-10-21 14:43:10 +0200
committerVasily Gorbik <gor@linux.ibm.com>2021-10-26 15:21:30 +0200
commitf492bac3b6c8f95c1b543bced9dc3818f342b6f0 (patch)
treed45c6476c9341d257e8c5bd92574cc73938f69b8 /arch/s390/lib/string.c
parenteec013bbf66fd17fc5671de6744913cb68036a00 (diff)
s390/string: use generic strlcpy
The generic version of strlcpy is identical to the architecure specific variant. Therefore use the generic variant. Signed-off-by: Heiko Carstens <hca@linux.ibm.com> Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Diffstat (limited to 'arch/s390/lib/string.c')
-rw-r--r--arch/s390/lib/string.c26
1 files changed, 0 insertions, 26 deletions
diff --git a/arch/s390/lib/string.c b/arch/s390/lib/string.c
index 4c2d1a8949cc..d1955eabda28 100644
--- a/arch/s390/lib/string.c
+++ b/arch/s390/lib/string.c
@@ -98,32 +98,6 @@ EXPORT_SYMBOL(strcpy);
#endif
/**
- * strlcpy - Copy a %NUL terminated string into a sized buffer
- * @dest: Where to copy the string to
- * @src: Where to copy the string from
- * @size: size of destination buffer
- *
- * Compatible with *BSD: the result is always a valid
- * NUL-terminated string that fits in the buffer (unless,
- * of course, the buffer size is zero). It does not pad
- * out the result like strncpy() does.
- */
-#ifdef __HAVE_ARCH_STRLCPY
-size_t strlcpy(char *dest, const char *src, size_t size)
-{
- size_t ret = __strend(src) - src;
-
- if (size) {
- size_t len = (ret >= size) ? size-1 : ret;
- dest[len] = '\0';
- memcpy(dest, src, len);
- }
- return ret;
-}
-EXPORT_SYMBOL(strlcpy);
-#endif
-
-/**
* strncpy - Copy a length-limited, %NUL-terminated string
* @dest: Where to copy the string to
* @src: Where to copy the string from