[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <3f88771d-17df-fcf8-ef25-8813c6c754a9@gmx.de>
Date: Wed, 26 Jul 2023 21:16:30 +0200
From: Lino Sanfilippo <LinoSanfilippo@....de>
To: Colin Ian King <colin.i.king@...il.com>,
"David S . Miller" <davem@...emloft.net>, Eric Dumazet
<edumazet@...gle.com>, Jakub Kicinski <kuba@...nel.org>,
Paolo Abeni <pabeni@...hat.com>, netdev@...r.kernel.org
Cc: kernel-janitors@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH][next] net: ethernet: slicoss: remove redundant increment
of pointer data
Hi,
On 26.07.23 18:45, Colin Ian King wrote:
> The pointer data is being incremented but this change to the pointer
> is not used afterwards. The increment is redundant and can be removed.
>
> Signed-off-by: Colin Ian King <colin.i.king@...il.com>
> ---
> drivers/net/ethernet/alacritech/slicoss.c | 4 +---
> 1 file changed, 1 insertion(+), 3 deletions(-)
>
> diff --git a/drivers/net/ethernet/alacritech/slicoss.c b/drivers/net/ethernet/alacritech/slicoss.c
> index a30d0f172986..78231c85234d 100644
> --- a/drivers/net/ethernet/alacritech/slicoss.c
> +++ b/drivers/net/ethernet/alacritech/slicoss.c
> @@ -1520,10 +1520,8 @@ static void slic_get_ethtool_stats(struct net_device *dev,
>
> static void slic_get_strings(struct net_device *dev, u32 stringset, u8 *data)
> {
> - if (stringset == ETH_SS_STATS) {
> + if (stringset == ETH_SS_STATS)
> memcpy(data, slic_stats_strings, sizeof(slic_stats_strings));
> - data += sizeof(slic_stats_strings);
> - }
> }
>
> static void slic_get_drvinfo(struct net_device *dev,
FWIW
Acked-by: Lino Sanfilippo <LinoSanfilippo@....de>
Best Regards,
Lino
Powered by blists - more mailing lists