diff options
author | Markus Elfring <elfring@users.sourceforge.net> | 2016-08-28 18:30:38 +0200 |
---|---|---|
committer | Paul Mackerras <paulus@ozlabs.org> | 2016-09-12 10:12:56 +1000 |
commit | b0ac477bc4efd6b9a3eccc106e597edf27546c11 (patch) | |
tree | 9dd4fbcbc70f610fd24ddc9d94a549fa2310ba84 /net/sched/sch_api.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 <pbonzini@redhat.com>
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 <elfring@users.sourceforge.net>
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
Diffstat (limited to 'net/sched/sch_api.c')
0 files changed, 0 insertions, 0 deletions