Skip to content

Commit

Permalink
net: ethernet: slicoss: remove redundant increment of pointer data
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
ColinIanKing authored and kuba-moo committed Jul 28, 2023
1 parent 05191d8 commit 3bdd85e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/net/ethernet/alacritech/slicoss.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 3bdd85e

Please sign in to comment.