treewide: use ethtool_puts instead of memcpy
The former is a safer and more readable version. Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
committed by
Christian Marangi
parent
511c7ff032
commit
89ff407d68
@@ -161,7 +161,7 @@ static void fe_get_strings(struct net_device *dev, u32 stringset, u8 *data)
|
||||
{
|
||||
switch (stringset) {
|
||||
case ETH_SS_STATS:
|
||||
memcpy(data, *fe_gdma_str, sizeof(fe_gdma_str));
|
||||
ethtool_puts(&data, *fe_gdma_str);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user