]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf886ed03d36ba0726fa9feeb7e7049545fac7f77
treef5d99e188cd02e6c7236cc2b97fc983db54fab80
parent06e6170e0ae33ea1ff98f01501371e23c4eee66a
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