diff options
| author | Andy Shevchenko <[email protected]> | 2021-07-01 01:55:46 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2021-07-01 18:06:05 +0000 |
| commit | cc72181a65990193f54284417efa01d4580014e6 (patch) | |
| tree | e4f9de5e7aee5dc0bedd4bdaf8092c2ba1d04357 /lib/string_helpers.c | |
| parent | nfsd: avoid non-flexible API in seq_quote_mem() (diff) | |
| download | kernel-cc72181a65990193f54284417efa01d4580014e6.tar.gz kernel-cc72181a65990193f54284417efa01d4580014e6.zip | |
seq_file: drop unused *_escape_mem_ascii()
There are no more users of the seq_escape_mem_ascii() followed by
string_escape_mem_ascii().
Remove them for good.
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Andy Shevchenko <[email protected]>
Cc: Alexander Viro <[email protected]>
Cc: Chuck Lever <[email protected]>
Cc: "J. Bruce Fields" <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/string_helpers.c')
| -rw-r--r-- | lib/string_helpers.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/lib/string_helpers.c b/lib/string_helpers.c index c15aea7a82e9..5a35c7e16e96 100644 --- a/lib/string_helpers.c +++ b/lib/string_helpers.c @@ -582,25 +582,6 @@ int string_escape_mem(const char *src, size_t isz, char *dst, size_t osz, } EXPORT_SYMBOL(string_escape_mem); -int string_escape_mem_ascii(const char *src, size_t isz, char *dst, - size_t osz) -{ - char *p = dst; - char *end = p + osz; - - while (isz--) { - unsigned char c = *src++; - - if (!isprint(c) || !isascii(c) || c == '"' || c == '\\') - escape_hex(c, &p, end); - else - escape_passthrough(c, &p, end); - } - - return p - dst; -} -EXPORT_SYMBOL(string_escape_mem_ascii); - /* * Return an allocated string that has been escaped of special characters * and double quotes, making it safe to log in quotes. |
