ubifs: Convert to use ERR_CAST()
authorShen Lichuan <shenlichuan@vivo.com>
Wed, 28 Aug 2024 08:59:08 +0000 (16:59 +0800)
committerRichard Weinberger <richard@nod.at>
Thu, 14 Nov 2024 16:58:45 +0000 (17:58 +0100)
commit94f5b1571ec8d90224675dd27e921053ff4f2370
tree09105c5e646f4e8a48e6e2c837060bb4908b95c5
parent39ba2b9ac6fd61c67c83b8fd2a3ec6b0bea89490
ubifs: Convert to use ERR_CAST()

As opposed to open-code, using the ERR_CAST macro clearly indicates that
this is a pointer to an error value and a type conversion was performed.

Signed-off-by: Shen Lichuan <shenlichuan@vivo.com>
Reviewed-by: Zhihao Cheng <chengzhihao1@huawei.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
fs/ubifs/lpt_commit.c