Skip to content
Commit aa1d6272 authored by Kenneth Lee's avatar Kenneth Lee Committed by Ilya Dryomov
Browse files

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: default avatarKenneth Lee <klee33@uw.edu>
Reviewed-by: default avatarXiubo Li <xiubli@redhat.com>
Signed-off-by: default avatarIlya Dryomov <idryomov@gmail.com>
parent 7c3ea987
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment