f2fs: simplify f2fs_sb_read_encoding
authorChristoph Hellwig <hch@lst.de>
Wed, 15 Sep 2021 06:59:57 +0000 (08:59 +0200)
committerGabriel Krisman Bertazi <krisman@collabora.com>
Mon, 11 Oct 2021 20:01:29 +0000 (17:01 -0300)
commit86e8057579780b4ec0fa04774dce2855344bf62d
treed71e448713ef35b482d090b65b716874936062b7
parentaa8bf298a96acaaaa3af07d09cf7ffeb9798e48a
f2fs: simplify f2fs_sb_read_encoding

Return the encoding table as the return value instead of as an argument,
and don't bother with the encoding flags as the caller can handle that
trivially.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Gabriel Krisman Bertazi <krisman@collabora.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Gabriel Krisman Bertazi <krisman@collabora.com>
fs/f2fs/super.c