summaryrefslogtreecommitdiffstats
path: root/fs/unicode
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2021-09-15 08:59:58 +0200
committerGabriel Krisman Bertazi <krisman@collabora.com>2021-10-11 17:01:35 -0300
commita440943e68cd1b5a853a6f60865967b7cc2539eb (patch)
treea73330ff8f1e3b7c2364517d87cddd56418adb19 /fs/unicode
parent86e8057579780b4ec0fa04774dce2855344bf62d (diff)
downloadlinux-a440943e68cd1b5a853a6f60865967b7cc2539eb.tar.bz2
unicode: remove the charset field from struct unicode_map
It is hardcoded and only used for a f2fs sysfs file where it can be hardcoded just as easily. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Gabriel Krisman Bertazi <krisman@collabora.com> Signed-off-by: Gabriel Krisman Bertazi <krisman@collabora.com>
Diffstat (limited to 'fs/unicode')
-rw-r--r--fs/unicode/utf8-core.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/unicode/utf8-core.c b/fs/unicode/utf8-core.c
index dc25823bfed9..86f42a078d99 100644
--- a/fs/unicode/utf8-core.c
+++ b/fs/unicode/utf8-core.c
@@ -219,10 +219,7 @@ struct unicode_map *utf8_load(const char *version)
um = kzalloc(sizeof(struct unicode_map), GFP_KERNEL);
if (!um)
return ERR_PTR(-ENOMEM);
-
- um->charset = "UTF-8";
um->version = unicode_version;
-
return um;
}
EXPORT_SYMBOL(utf8_load);