diff options
author | Rosen Penev <rosenp@gmail.com> | 2024-11-01 15:00:22 -0700 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-11-05 17:38:29 -0800 |
commit | 7a4ea5da4d02c6087db8643fd5940974fabbaea3 (patch) | |
tree | 90c74a6458db1c9b7de858962df807625634ba78 /drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c | |
parent | 7d1c2d517f503c63aac3775b51ec96210a6e6ef9 (diff) | |
download | lwn-7a4ea5da4d02c6087db8643fd5940974fabbaea3.tar.gz lwn-7a4ea5da4d02c6087db8643fd5940974fabbaea3.zip |
net: hisilicon: hns: use ethtool string helpers
The latter is the preferred way to copy ethtool strings.
Avoids manually incrementing the pointer. Cleans up the code quite well.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Reviewed-by: Jijie Shao <shaojijie@huawei.com>
Link: https://patch.msgid.link/20241101220023.290926-1-rosenp@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c')
0 files changed, 0 insertions, 0 deletions