diff options
author | Qianfeng Rong <rongqianfeng@vivo.com> | 2025-08-12 11:58:53 +0800 |
---|---|---|
committer | Miquel Raynal <miquel.raynal@bootlin.com> | 2025-09-11 17:34:15 +0200 |
commit | 81eb13a19a8eb259b3d9b1fdf5cbf154f71fc1d0 (patch) | |
tree | e37670f27accfc71708099344dc9ab86e0daa89d /rust/helpers/helpers.c | |
parent | e3d2faffdd18a545caccb1d249603cf286289d0f (diff) |
mtd: use vmalloc_array and vcalloc to simplify code
Remove array_size() calls and replace vmalloc(array_size()) with
vmalloc_array() and vzalloc(array_size()) with vcalloc() to simplify
the code.
Compile-tested only.
Signed-off-by: Qianfeng Rong <rongqianfeng@vivo.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions