diff options
author | Zou Wei <[email protected]> | 2020-04-29 11:35:28 +0800 |
---|---|---|
committer | David S. Miller <[email protected]> | 2020-04-30 20:59:34 -0700 |
commit | 37ecb5b8b8cd3156e739fd1c56a8e3842b72ebad (patch) | |
tree | 21d62509a23f21fb8315087ceaa482aa175dbb37 /tools/perf/scripts/python/syscall-counts-by-pid.py | |
parent | 2597912514925f6f06e85807cc9fc0fdfa630d11 (diff) |
hinic: Use kmemdup instead of kzalloc and memcpy
Fixes coccicheck warnings:
drivers/net/ethernet/huawei/hinic/hinic_hw_mbox.c:452:17-24: WARNING opportunity for kmemdup
drivers/net/ethernet/huawei/hinic/hinic_hw_mbox.c:458:23-30: WARNING opportunity for kmemdup
Reported-by: Hulk Robot <[email protected]>
Signed-off-by: Zou Wei <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions