]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
jffs2: Use function instead of macro when initialize compressors
authorZhang Xiaoxu <zhangxiaoxu5@huawei.com>
Thu, 27 Oct 2022 12:49:05 +0000 (20:49 +0800)
committerRichard Weinberger <richard@nod.at>
Thu, 2 Feb 2023 20:13:54 +0000 (21:13 +0100)
commitd5711ae52d5a548d16e5c177c92c15338ec63624
tree662217be9a22b93f4744e81a9cdef3f7d03301ab
parent7198c9c00338287fe364d76bba35b3b10feec3c5
jffs2: Use function instead of macro when initialize compressors

The initialized compressors should be released if one of them
initialize fail, this is the pre-patch for fix the problem, use
function instead of the macro in jffs2_compressors_init() to
simplify the codes, no functional change intended.

Signed-off-by: Zhang Xiaoxu <zhangxiaoxu5@huawei.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
fs/jffs2/compr.c
fs/jffs2/compr.h