diff options
author | Kenneth Lee <[email protected]> | 2022-08-18 22:42:55 -0700 |
---|---|---|
committer | Ilya Dryomov <[email protected]> | 2022-10-04 19:18:08 +0200 |
commit | aa1d627207cace003163dee24d1c06fa4e910c6b (patch) | |
tree | 5e33e9d78dac8780ea5029a214e2185829118db0 /tools/testing/selftests/bpf/prog_tests/prog_array_init.c | |
parent | 7c3ea9870e09e193981695dd67c37a1a2b6d600b (diff) |
ceph: Use kcalloc for allocating multiple elements
Prefer using kcalloc(a, b) over kzalloc(a * b) as this improves
semantics since kcalloc is intended for allocating an array of memory.
Signed-off-by: Kenneth Lee <[email protected]>
Reviewed-by: Xiubo Li <[email protected]>
Signed-off-by: Ilya Dryomov <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/prog_array_init.c')
0 files changed, 0 insertions, 0 deletions