Re: [PATCH net-next] net: qlogic: use ethtool string helpers
From: Simon Horman
Date: Fri Oct 25 2024 - 05:23:58 EST
On Thu, Oct 24, 2024 at 12:55:34PM -0700, Rosen Penev wrote:
> 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@xxxxxxxxx>
> ---
> .../qlogic/netxen/netxen_nic_ethtool.c | 14 ++---
> .../net/ethernet/qlogic/qede/qede_ethtool.c | 34 +++++------
> .../ethernet/qlogic/qlcnic/qlcnic_ethtool.c | 60 +++++++++----------
I do suspect some of these drivers are quite old, and
we would be better off restricting changes to bug fixes
and updates for API changes, rather than cleaning them up.
That said, these changes do seem correct to me.
Reviewed-by: Simon Horman <horms@xxxxxxxxxx>