diff options
| author | Yang Yingliang <yangyingliang@huawei.com> | 2023-01-19 17:22:10 +0800 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2023-01-20 18:15:10 -0800 |
| commit | 5e64f59a3cc2c4cfba748b87f0761d865dec7924 (patch) | |
| tree | 981d721c1de35311a6b02567a39ce228f9b268a6 /drivers/ptp | |
| parent | bad5532ecf3300620c5a68d63eda3346e51488f8 (diff) | |
| download | linux-5e64f59a3cc2c4cfba748b87f0761d865dec7924.tar.gz linux-5e64f59a3cc2c4cfba748b87f0761d865dec7924.tar.bz2 linux-5e64f59a3cc2c4cfba748b87f0761d865dec7924.zip | |
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>
Diffstat (limited to 'drivers/ptp')
0 files changed, 0 insertions, 0 deletions
