commit | 37ecb5b8b8cd3156e739fd1c56a8e3842b72ebad | [log] [tgz] |
---|---|---|
author | Zou Wei <zou_wei@huawei.com> | Wed Apr 29 11:35:28 2020 +0800 |
committer | David S. Miller <davem@davemloft.net> | Thu Apr 30 20:59:34 2020 -0700 |
tree | 21d62509a23f21fb8315087ceaa482aa175dbb37 | |
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 <hulkci@huawei.com> Signed-off-by: Zou Wei <zou_wei@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>