Skip to content

Commit 3bdd85e

Browse files
ColinIanKingkuba-moo
authored andcommitted
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 <[email protected]> Acked-by: Lino Sanfilippo <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 05191d8 commit 3bdd85e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/net/ethernet/alacritech/slicoss.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1520,10 +1520,8 @@ static void slic_get_ethtool_stats(struct net_device *dev,
15201520

15211521
static void slic_get_strings(struct net_device *dev, u32 stringset, u8 *data)
15221522
{
1523-
if (stringset == ETH_SS_STATS) {
1523+
if (stringset == ETH_SS_STATS)
15241524
memcpy(data, slic_stats_strings, sizeof(slic_stats_strings));
1525-
data += sizeof(slic_stats_strings);
1526-
}
15271525
}
15281526

15291527
static void slic_get_drvinfo(struct net_device *dev,

0 commit comments

Comments
 (0)