jffs2: Use kzalloc instead of kmalloc/memset
authorHaowen Bai <baihaowen@meizu.com>
Mon, 18 Apr 2022 10:18:07 +0000 (18:18 +0800)
committerRichard Weinberger <richard@nod.at>
Fri, 27 May 2022 14:12:55 +0000 (16:12 +0200)
commit22abf318c35bcf642625e4eff56cfec1df361f3b
treef5d99e188cd02e6c7236cc2b97fc983db54fab80
parent42226c989789d8da4af1de0c31070c96726d990c
jffs2: Use kzalloc instead of kmalloc/memset

Use kzalloc rather than duplicating its implementation, which
makes code simple and easy to understand.

Signed-off-by: Haowen Bai <baihaowen@meizu.com>
[rw: Fixed printk string]
Signed-off-by: Richard Weinberger <richard@nod.at>
fs/jffs2/erase.c