Skip to content
Commit e0a9ddd5 authored by RinHizakura's avatar RinHizakura Committed by Miquel Raynal
Browse files

mtd: rawnand: nandsim: Replace overflow check with kzalloc to single kcalloc



Instead of self-checking overflow and allocating an array of specific size
by counting the total required space handy, we already have existed kernel
API which responses for all these works.

Signed-off-by: default avatarRinHizakura <s921975628@gmail.com>
Reviewed-by: default avatarRichard Weinberger <richard@nod.at>
Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20211225100607.118932-1-s921975628@gmail.com
parent e783362e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment