Skip to content
Commit 13c76227 authored by Yang Yingliang's avatar Yang Yingliang Committed by Jakub Kicinski
Browse files

net/mlx5e: Switch to kmemdup() when allocate dev_addr



Use kmemdup() helper instead of open-coding to
simplify the code when allocate dev_addr.

Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
Acked-by: default avatarSaeed Mahameed <saeedm@nvidia.com>
Link: https://lore.kernel.org/r/20220914140100.3795545-2-yangyingliang@huawei.com


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 46ff47bc
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment