mirror of
https://github.com/torvalds/linux.git
synced 2024-12-20 10:01:56 +00:00
s390/qeth: use ethtool_sprintf()
Use a recently introduced helper to fill our ethtool stats strings. Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
3518ae76f2
commit
c0a0186630
@ -80,10 +80,8 @@ static void qeth_add_stat_strings(u8 **data, const char *prefix,
|
||||
{
|
||||
unsigned int i;
|
||||
|
||||
for (i = 0; i < size; i++) {
|
||||
snprintf(*data, ETH_GSTRING_LEN, "%s%s", prefix, stats[i].name);
|
||||
*data += ETH_GSTRING_LEN;
|
||||
}
|
||||
for (i = 0; i < size; i++)
|
||||
ethtool_sprintf(data, "%s%s", prefix, stats[i].name);
|
||||
}
|
||||
|
||||
static int qeth_get_sset_count(struct net_device *dev, int stringset)
|
||||
|
Loading…
Reference in New Issue
Block a user