summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/alacritech
diff options
context:
space:
mode:
authorColin Ian King <colin.i.king@gmail.com>2023-07-26 19:45:22 +0300
committerJakub Kicinski <kuba@kernel.org>2023-07-29 01:37:08 +0300
commit3bdd85e2e3508a5f10949cae66c1d9e21a82d16f (patch)
tree9a23ad7a74f3ddf1700af9ec7943460fd88dc6bb /drivers/net/ethernet/alacritech
parent05191d8896b42cacb4551409b482d321b4321eff (diff)
downloadlinux-3bdd85e2e3508a5f10949cae66c1d9e21a82d16f.tar.xz
net: ethernet: slicoss: remove redundant increment of pointer data
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@gmail.com> Acked-by: Lino Sanfilippo <LinoSanfilippo@gmx.de> Link: https://lore.kernel.org/r/20230726164522.369206-1-colin.i.king@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/ethernet/alacritech')
-rw-r--r--drivers/net/ethernet/alacritech/slicoss.c4
1 files changed, 1 insertions, 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,