linux/drivers/net/ethernet/microchip/vcap
Yang Yingliang 5e64f59a3c net: microchip: vcap: use kmemdup() to allocate memory
Use kmemdup() helper instead of open-coding to simplify
the code when allocating newckf and newcaf.

Generated by: scripts/coccinelle/api/memdup.cocci

Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Reviewed-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Reviewed-by: Steen Hegelund <Steen.Hegelund@microchip.com>
Link: https://lore.kernel.org/r/20230119092210.3607634-1-yangyingliang@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2023-01-20 18:15:10 -08:00
..
Kconfig net: microchip: sparx5: Add VCAP debugfs KUNIT test 2022-11-21 11:33:02 +00:00
Makefile net: microchip: sparx5: Add VCAP debugFS support 2022-11-21 11:33:02 +00:00
vcap_ag_api.h net: microchip: vcap: Extend vcap with lan966x 2022-11-29 13:08:23 +01:00
vcap_api.c net: microchip: vcap: use kmemdup() to allocate memory 2023-01-20 18:15:10 -08:00
vcap_api.h net: microchip: vcap api: Always enable VCAP lookups 2023-01-16 13:45:16 +00:00
vcap_api_client.h net: microchip: sparx5: Add support for rule count by cookie 2023-01-18 14:31:43 +00:00
vcap_api_debugfs.c net: microchip: sparx5: Add VCAP admin locking in debugFS 2023-01-18 14:31:43 +00:00
vcap_api_debugfs.h net: microchip: sparx5: Add VCAP debugFS support 2022-11-21 11:33:02 +00:00
vcap_api_debugfs_kunit.c net: microchip: sparx5: Add lock initialization to the KUNIT tests 2023-01-18 14:31:43 +00:00
vcap_api_kunit.c net: microchip: sparx5: Add lock initialization to the KUNIT tests 2023-01-18 14:31:43 +00:00
vcap_api_private.h net: microchip: sparx5: Add VCAP admin locking in debugFS 2023-01-18 14:31:43 +00:00
vcap_model_kunit.c net: microchip: sparx5: Adding KUNIT test VCAP model 2022-10-24 10:37:43 +01:00
vcap_model_kunit.h net: microchip: sparx5: Adding KUNIT test VCAP model 2022-10-24 10:37:43 +01:00