diff options
author | Markus Elfring <[email protected]> | 2016-08-28 18:30:38 +0200 |
---|---|---|
committer | Paul Mackerras <[email protected]> | 2016-09-12 10:12:56 +1000 |
commit | b0ac477bc4efd6b9a3eccc106e597edf27546c11 (patch) | |
tree | 9dd4fbcbc70f610fd24ddc9d94a549fa2310ba84 /lib/test-string_helpers.c | |
parent | cfb60813fb8363a1681da2c10947e5f5b4165c47 (diff) |
KVM: PPC: e500: Replace kzalloc() calls by kcalloc() in two functions
* A multiplication for the size determination of a memory allocation
indicated that an array data structure should be processed.
Thus use the corresponding function "kcalloc".
Suggested-by: Paolo Bonzini <[email protected]>
This issue was detected also by using the Coccinelle software.
* Replace the specification of data structures by pointer dereferences
to make the corresponding size determination a bit safer according to
the Linux coding style convention.
Signed-off-by: Markus Elfring <[email protected]>
Signed-off-by: Paul Mackerras <[email protected]>
Diffstat (limited to 'lib/test-string_helpers.c')
0 files changed, 0 insertions, 0 deletions