diff options
author | GONG, Ruiqi <gongruiqi1@huawei.com> | 2022-04-06 14:46:29 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-04-08 07:06:41 +0300 |
commit | 27a5a5685d373cd8c18b1d83f42a83e5a2f93e6c (patch) | |
tree | 8b8257ed892ebec37ff3459fe52ec5a38164d085 /drivers/net/ethernet/xilinx/xilinx_axienet.h | |
parent | 26894cd971168d14fd8f4c05435aef59188c9514 (diff) | |
download | linux-27a5a5685d373cd8c18b1d83f42a83e5a2f93e6c.tar.xz |
net: mpls: fix memdup.cocci warning
Simply use kmemdup instead of explicitly allocating and copying memory.
Generated by: scripts/coccinelle/api/memdup.cocci
Signed-off-by: GONG, Ruiqi <gongruiqi1@huawei.com>
Link: https://lore.kernel.org/r/20220406114629.182833-1-gongruiqi1@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/ethernet/xilinx/xilinx_axienet.h')
0 files changed, 0 insertions, 0 deletions