Skip to content
Snippets Groups Projects
Commit 17c929e1 authored by Fuqian Huang's avatar Fuqian Huang Committed by Miquel Raynal
Browse files

mtd: rawnand: Use kzalloc() instead of kmalloc() and memset()


Replace kmalloc() by a memset() followed with a kzalloc().

There is a recommendation to use zeroing allocator
rather than allocator followed by memset(0) in
./scripts/coccinelle/api/alloc/zalloc-simple.cocci

Signed-off-by: default avatarFuqian Huang <huangfq.daxian@gmail.com>
Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
parent b83408b5
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment