ext4: simplify ext4_sb_read_encoding
authorChristoph Hellwig <hch@lst.de>
Wed, 15 Sep 2021 06:59:56 +0000 (08:59 +0200)
committerGabriel Krisman Bertazi <krisman@collabora.com>
Mon, 11 Oct 2021 20:01:24 +0000 (17:01 -0300)
commitaa8bf298a96acaaaa3af07d09cf7ffeb9798e48a
treefdbb4e02aec675382bf8846fcce99a390e39fb52
parent9e1ff307c779ce1f0f810c7ecce3d95bbae40896
ext4: simplify ext4_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>
Acked-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Gabriel Krisman Bertazi <krisman@collabora.com>
fs/ext4/super.c